/* Frontend Styles - Portal Indianópolis */

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--gray);
}

.loading-spinner i {
    margin-bottom: 15px;
    color: var(--primary);
}

.loading-spinner p {
    font-size: 0.9rem;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: var(--radius);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-hover);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-gray);
    border-radius: var(--radius);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 15px;
    display: block;
}

.empty-state p {
    color: var(--gray);
    margin: 0;
}

/* Hero Secondary Fix */
.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* News Card Grid */
.news-grid-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.news-card-content .category-badge {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
}

.news-card-content h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Jobs Grid */
.empregos-grid {
    display: block;
    width: 100%;
}

.empregos-grid .table-responsive {
    margin: 0;
}

/* Classificados Grid */
.classificados-grid-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Eventos Grid */
.eventos-grid {
    display: block;
}

.cidade-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cidade-section h3 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.cidade-section-body h4 {
    margin: 18px 0 10px;
    color: var(--dark);
}

.cidade-section-body p {
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--dark);
}

.cidade-section-body ul,
.cidade-section-body ol {
    margin: 8px 0 12px 22px;
}

.history-timeline {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    border-left: 3px solid var(--light-gray);
}

.history-timeline li {
    padding: 8px 0 8px 16px;
    position: relative;
    line-height: 1.6;
    color: var(--dark);
}

.history-timeline li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -6px;
    top: 14px;
}

.event-month-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 24px;
}

.event-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.event-month-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
}

.event-count {
    background: var(--light-gray);
    color: var(--dark);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.eventos-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.eventos-table thead {
    background: var(--primary);
    color: var(--white);
}

.eventos-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.eventos-table tbody tr {
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.eventos-table tbody tr:hover {
    background: rgba(26, 95, 122, 0.06);
}

.eventos-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
}

.event-date-cell .event-date-main {
    font-weight: 700;
    color: var(--dark);
}

.event-time {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 4px;
}

.event-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.event-type {
    display: inline-block;
    background: var(--light-gray);
    color: var(--dark);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.event-location-cell {
    color: var(--gray);
}

.evento-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.evento-card-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 10px 15px;
    border-radius: var(--radius);
    text-align: center;
    z-index: 2;
}

.evento-card-date .dia {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.evento-card-date .mes {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
}

.evento-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.evento-card-content {
    padding: 20px;
}

.evento-tipo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--light-gray);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.evento-card-content h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.evento-card-content p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-evento {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-evento:hover {
    background: var(--primary-dark);
}

/* Empresas Grid */
.empresas-destaque-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.empresa-destaque-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.empresa-destaque-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.empresa-destaque-card.premium {
    border: 2px solid var(--accent);
}

.premium-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--accent);
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
}

.empresa-destaque-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.empresa-info {
    padding: 20px;
}

.empresa-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.empresa-info p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.empresa-info .categoria {
    color: var(--primary);
    font-weight: 600;
}

.empresa-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.empresa-actions a {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-telefone {
    background: var(--light-gray);
    color: var(--dark);
}

.btn-telefone:hover {
    background: var(--primary);
    color: white;
}

.empresas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.empresa-card-mini {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.empresa-card-mini:hover {
    transform: translateY(-3px);
}

.empresa-card-mini img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.empresa-mini-info {
    padding: 15px;
    position: relative;
}

.empresa-mini-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.empresa-mini-info .cat {
    font-size: 0.75rem;
    color: var(--gray);
}

.mini-whatsapp {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 35px;
    height: 35px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pagination Container */
.pagination-container {
    margin-top: 30px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.breadcrumb {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
}

.breadcrumb span {
    margin: 0 8px;
}


/* Detail Pages */
.detail-article {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-title {
    font-size: 2rem;
    line-height: 1.2;
    color: var(--dark);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--gray);
    font-size: 0.9rem;
    align-items: center;
}

.detail-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-meta .category-badge {
    position: static;
    display: inline-block;
}

.detail-lead {
    font-size: 1.05rem;
    color: var(--dark);
    font-weight: 500;
}

.detail-cover {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.detail-content {
    font-size: 1rem;
    color: var(--dark);
}

.detail-content p {
    margin-bottom: 14px;
}

.detail-section-title {
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--primary);
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-info-item {
    background: var(--light-gray);
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.detail-info-item strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    margin-bottom: 4px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-detail:hover {
    background: var(--primary-dark);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-link {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-link:hover {
    background: var(--light-gray);
}

.sidebar-link img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-link-content h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.sidebar-link-content span {
    font-size: 0.8rem;
    color: var(--gray);
}

.classified-image-link {
    display: block;
}

.classified-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.classified-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.classified-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: start;
}

.classified-detail-summary {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.classified-detail-summary .detail-meta {
    margin: 0;
}

.classified-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success);
}

.classified-detail-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 10px 0 0;
}

@media (max-width: 900px) {
    .classified-detail-hero { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .detail-info-grid { grid-template-columns: 1fr; }
    .detail-cover img { max-height: 260px; }
    .detail-title { font-size: 1.6rem; }
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid-page { grid-template-columns: repeat(2, 1fr); }
    .eventos-grid { grid-template-columns: repeat(2, 1fr); }
    .empresas-destaque-grid { grid-template-columns: repeat(2, 1fr); }
    .empresas-grid { grid-template-columns: repeat(3, 1fr); }
    .classificados-grid-page { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .news-grid-page { grid-template-columns: 1fr; }
    .eventos-grid { grid-template-columns: 1fr; }
    .empresas-destaque-grid { grid-template-columns: 1fr; }
    .empresas-grid { grid-template-columns: repeat(2, 1fr); }
    .classificados-grid-page { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .empresas-grid { grid-template-columns: 1fr; }
    .classificados-grid-page { grid-template-columns: 1fr; }
}
/* Estilos para Tabela de Vagas de Emprego */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

/* Quando a tabela é usada dentro do grid de empregos, ocupar toda a largura */
.jobs-grid > .table-responsive {
    grid-column: 1 / -1;
    margin: 0;
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow);
}

.jobs-table thead {
    background: var(--white);
    color: var(--primary);
}

.jobs-table thead th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--light-gray);
}

.jobs-table tbody tr {
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}


.jobs-table tbody tr:hover {
    background: rgba(26, 95, 122, 0.06);
}

.jobs-table tbody tr.featured-row {
    background: var(--white);
}

.jobs-table tbody tr.featured-row:hover {
    background: rgba(26, 95, 122, 0.06);
}

.jobs-table tbody td {
    padding: 16px;
    vertical-align: middle;
}

.jobs-grid .table-responsive {
    overflow-x: hidden;
}

.jobs-grid .jobs-table {
    table-layout: auto;
}

.jobs-grid .jobs-table th:nth-child(1),
.jobs-grid .jobs-table td:nth-child(1) {
    width: 38%;
}

.jobs-grid .jobs-table th:nth-child(2),
.jobs-grid .jobs-table td:nth-child(2) {
    width: 10%;
}

.jobs-grid .jobs-table th:nth-child(3),
.jobs-grid .jobs-table td:nth-child(3) {
    width: 26%;
}

.jobs-grid .jobs-table th:nth-child(4),
.jobs-grid .jobs-table td:nth-child(4) {
    width: 18%;
}

.jobs-grid .jobs-table th:nth-child(5),
.jobs-grid .jobs-table td:nth-child(5) {
    width: 8%;
}

.jobs-grid .job-title-text,
.jobs-grid .company-cell,
.jobs-grid .salary-cell {
    min-width: 0;
    word-break: break-word;
}

.jobs-grid .salary-cell {
    white-space: normal;
}

.jobs-grid .btn-job-table {
    padding: 6px 12px;
}

.job-title-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-title-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--gray);
}

.contract-badge {
    background: var(--light-gray);
    color: var(--dark);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-cell {
    width: 110px;
    text-align: center;
}

.badge-cell .job-badge {
    margin-left: 0;
}

.job-icon-small {
    color: var(--primary);
    font-size: 18px;
    min-width: 20px;
}

.job-title-cell strong {
    color: var(--dark);
    font-size: 15px;
}

.company-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.jobs-table .job-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.jobs-table .job-badge.urgente {
    background: var(--danger);
    color: var(--white);
}

.jobs-table .job-badge.destaque {
    background: var(--accent);
    color: var(--white);
}

.salary-cell {
    color: var(--success);
    font-weight: 600;
    white-space: nowrap;
}

.salary-cell i {
    margin-right: 6px;
}

.action-cell {
    text-align: right;
}

.btn-job-table {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-job-table:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

/* Responsivo */
@media (max-width: 768px) {
    .jobs-table {
        font-size: 13px;
    }

    .jobs-table thead th,
    .jobs-table tbody td {
        padding: 12px 8px;
    }

    .job-title-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .jobs-table .job-badge {
        margin-left: 0;
    }

    .btn-job-table {
        padding: 6px 14px;
        font-size: 12px;
    }

    .eventos-table thead th,
    .eventos-table tbody td {
        padding: 10px 8px;
    }
}

@media (max-width: 992px) {
    .jobs-grid .table-responsive {
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    /* Em telas muito pequenas, fazer a tabela scrollável horizontalmente */
    .table-responsive {
        margin: 10px -15px;
    }

    .jobs-table {
        min-width: 600px;
    }

    .eventos-table {
        min-width: 640px;
    }
}


/* Fonte da Notícia */
.detail-fonte {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary, #1a5f7a);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #555;
}

.detail-fonte i {
    color: var(--primary, #1a5f7a);
    font-size: 16px;
}

.detail-fonte a {
    color: var(--primary, #1a5f7a);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.detail-fonte a:hover {
    color: var(--primary-light, #2980b9);
    text-decoration: underline;
}


/* ============================================
   ARTICLE MODERN - Design 2025
   Inspirado em G1, UOL, Folha, NY Times
   ============================================ */

.article-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Article Header */
.article-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #eee;
}

.article-category-tag {
    display: inline-block;
    background: var(--cat-color, var(--primary));
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 16px;
    font-family: 'Raleway', 'Open Sans', sans-serif;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px;
    font-weight: 400;
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}

/* Meta Bar */
.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light, #2980b9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
}

.publish-date {
    font-size: 13px;
    color: #777;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.read-time, .time-ago {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
}

.read-time i, .time-ago i {
    color: var(--primary);
}

/* Hero Image */
.article-hero {
    margin: 0;
    position: relative;
}

.article-hero img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.article-hero figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 40px 32px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-hero figcaption i {
    opacity: 0.8;
}

/* Share Bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.share-label i {
    color: var(--primary);
}

.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.copy { background: #6c757d; }

/* Article Body */
.article-body {
    padding: 32px;
    font-size: 17px;
    line-height: 1.9;
    color: #333;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body p:first-child::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    font-weight: 700;
    color: var(--primary);
    margin-right: 12px;
    margin-top: 8px;
    font-family: 'Raleway', serif;
}

.article-body strong {
    color: #1a1a1a;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
}

/* Article Footer */
.article-footer {
    background: #f8f9fa;
    padding: 24px 32px 32px;
    border-top: 1px solid #eee;
}

/* Source Box */
.article-source {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.source-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
    margin-bottom: 12px;
}

.source-label i {
    color: var(--primary);
}

.source-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.source-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.source-date i {
    color: var(--primary);
}

.source-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light, #2980b9) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    flex: 1;
}

.source-link:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.source-name {
    font-weight: 700;
    font-size: 15px;
}

.source-url {
    font-size: 13px;
    opacity: 0.8;
    flex: 1;
}

.source-link i {
    margin-left: auto;
}

/* Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag-label {
    font-size: 13px;
    color: #777;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-label i {
    color: var(--primary);
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Bottom Share Bar */
.share-bar-bottom {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    flex-wrap: wrap;
    justify-content: center;
}

.share-bar-bottom .share-btn {
    width: auto;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* Sidebar News Items */
.sidebar-news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.sidebar-news-item:hover {
    background: #f8f9fa;
}

.sidebar-news-item.current {
    background: rgba(26, 95, 122, 0.1);
    border-left: 3px solid var(--primary);
}

.sidebar-news-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-news-info {
    flex: 1;
    min-width: 0;
}

.sidebar-news-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-time {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-news-time i {
    color: var(--primary);
    font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
    .article-header {
        padding: 24px 20px 20px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-subtitle {
        font-size: 1rem;
    }

    .article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-right {
        width: 100%;
        justify-content: flex-start;
    }

    .article-body {
        padding: 24px 20px;
        font-size: 16px;
    }

    .article-body p:first-child::first-letter {
        font-size: 3rem;
    }

    .share-bar {
        padding: 12px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .article-footer {
        padding: 20px;
    }

    .source-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .share-bar-bottom {
        padding: 16px;
    }

    .share-bar-bottom .share-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .share-bar, .article-footer, .sidebar {
        display: none;
    }

    .article-modern {
        box-shadow: none;
    }

    .article-body {
        font-size: 12pt;
    }
}

/* ============================================
   NEWSLETTER MODERN - Sidebar Block
   ============================================ */

.newsletter-block-modern {
    background: linear-gradient(135deg, var(--primary, #1a5f7a) 0%, #2980b9 100%);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.newsletter-block-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.newsletter-block-modern h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.newsletter-block-modern p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 20px;
    line-height: 1.5;
}

.newsletter-input-group {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.newsletter-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    outline: none;
    min-width: 0;
}

.newsletter-input-group input::placeholder {
    color: #999;
}

.newsletter-input-group button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary, #1a5f7a) 0%, #2980b9 100%);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-input-group button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.newsletter-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 14px;
}

.newsletter-hint i {
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-block-modern {
        padding: 24px 20px;
    }

    .newsletter-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .newsletter-block-modern h3 {
        font-size: 1.1rem;
    }
}

/* ========================================
   GALLERY SLIDER - Notícias com múltiplas imagens
   ======================================== */

.article-gallery-slider {
    margin: 0 0 24px 0;
    background: #1a1a1a;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.gallery-slider-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* Navigation Buttons */
.gallery-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.7;
}

.gallery-slider-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.gallery-slider-btn.prev {
    left: 16px;
}

.gallery-slider-btn.next {
    right: 16px;
}

/* Counter */
.gallery-slider-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

/* Thumbnails */
.gallery-slider-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #222;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #555 #222;
}

.gallery-slider-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-slider-thumbs::-webkit-scrollbar-track {
    background: #222;
}

.gallery-slider-thumbs::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 50px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    background: #333;
    opacity: 0.6;
}

.gallery-thumb:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-thumb.active {
    border-color: var(--primary, #1a5f7a);
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(26, 95, 122, 0.4);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Figcaption for Gallery */
.article-gallery-slider figcaption {
    padding: 12px 16px;
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #333;
}

.article-gallery-slider figcaption i {
    color: var(--primary, #1a5f7a);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gallery-slider-container {
        aspect-ratio: 4/3;
    }

    .gallery-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .gallery-slider-btn.prev {
        left: 10px;
    }

    .gallery-slider-btn.next {
        right: 10px;
    }

    .gallery-slider-counter {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 4px 10px;
    }

    .gallery-slider-thumbs {
        padding: 10px 12px;
        gap: 6px;
    }

    .gallery-thumb {
        width: 60px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-slider-container {
        aspect-ratio: 1/1;
    }

    .gallery-slider-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .gallery-slider-thumbs {
        display: none; /* Hide thumbs on small screens */
    }
}
