
/* Reset e Variáveis */
:root {
    --primary: #3097ff;
    --primary-dark: #3e5c78;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gray: #95a5a6;
    --gray-light: #ecf0f1;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

.btn-light {
    background: white;
    color: var(--primary);
    border-color: white;
}

.btn-light:hover {
    background: var(--gray-light);
    border-color: var(--gray-light);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-link {
    background: transparent;
    color: var(--secondary);
    padding: 0;
    border: none;
}

.btn-link:hover {
    color: var(--primary);
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navbar .nav-item {
    margin: 0px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.navbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Statistics */
.statistics {
    padding: 3rem 0;
    background: var(--light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    color: var(--primary);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

.bg-light {
    background: var(--light);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.news-title a {
    color: var(--primary);
}

.news-title a:hover {
    color: var(--secondary);
}

.news-excerpt {
    color: var(--dark);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.news-link {
    color: var(--secondary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    gap: 10px;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.activity-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-type {
    background: var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.activity-date {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-content {
    padding: 1.5rem;
}

.activity-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.activity-excerpt {
    color: var(--dark);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray);
}

.activity-slots {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.activity-slots.available {
    background: #d4edda;
    color: #155724;
}

.activity-slots.full {
    background: #f8d7da;
    color: #721c24;
}

.activity-actions {
    padding: 1rem 1.5rem;
    background: var(--light);
    display: flex;
    gap: 1rem;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.document-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: var(--transition);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.document-icon {
    font-size: 2rem;
    color: var(--secondary);
}

.document-content {
    flex: 1;
}

.document-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.document-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.document-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.document-actions {
    margin-left: auto;
}

/* Partnerships Slider */
.partnerships-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.partner-logo img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.partner-name {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.partner-type {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.partner-website {
    color: var(--secondary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
}

.footer-description {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    gap: 12px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--secondary);
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom .fa-heart {
    color: var(--accent);
}

/* Empty States */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.empty-state i {
    margin-bottom: 1rem;
    color: var(--gray-light);
}

/* Responsividade */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid,
    .activities-grid,
    .documents-grid,
    .partnerships-slider {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
}


/* ====================
   ESTRUTURA ENHANCED
   ==================== */

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(48, 151, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(48, 151, 255, 0.4);
}

/* Breadcrumb */
.breadcrumb-nav {
    background: var(--light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--dark);
    font-weight: 500;
}

.breadcrumb-item:not(:first-child)::before {
    content: '/';
    margin-right: 0.5rem;
    color: var(--gray);
}

/* Alerts */
.flash-messages {
    margin: 1rem auto;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* Enhanced Navbar */
.navbar-brand .brand-logo {
    text-decoration: none;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 500;
    line-height: 1;
}

.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.navbar-toggler-icon {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s ease;
}

.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(48, 151, 255, 0.1);
    color: var(--primary);
}

.nav-link i:first-child {
    font-size: 1.1rem;
}

.badge-notification {
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.dropdown-icon {
    font-size: 0.8rem;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(48, 151, 255, 0.1);
    color: var(--primary);
    padding-left: 2rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 0.5rem 0;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.user-toggle:hover {
    background: rgba(48, 151, 255, 0.1);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar i {
    font-size: 1.5rem;
    color: var(--gray);
}

.user-name {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.user-dropdown {
    right: 0;
    left: auto;
    min-width: 250px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    background: var(--light);
    border-radius: 8px 8px 0 0;
}

.user-details {
    flex: 1;
}

.user-details strong {
    display: block;
    font-size: 0.95rem;
}

.user-details small {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 2px;
}

/* Quick Search */
.quick-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 20px 0 0 20px;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    width: 250px;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

/* Responsividade */
@media (max-width: 992px) {
    .navbar-toggler {
        display: flex;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .navbar-collapse.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .navbar-quick-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .quick-search {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-input:focus {
        width: 100%;
    }
    
    .user-toggle {
        width: 100%;
        justify-content: space-between;
    }
}

/* Footer melhorado */
.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col-main {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .footer-col-main {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .footer-main {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
    
    .footer-col-main {
        grid-column: auto;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text .logo-main {
    color: white;
    font-size: 1.3rem;
}

.footer-logo-text .logo-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.65rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    gap: 12px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--secondary);
    margin-top: 3px;
    font-size: 1rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Utilitários */
.text-danger {
    color: var(--danger) !important;
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Melhorias de acessibilidade */
.btn:focus-visible,
.nav-link:focus-visible,
.search-input:focus-visible,
.dropdown-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .alert,
    .back-to-top,
    .dropdown-menu {
        animation: none;
        transition: none;
    }
}

/* ====================
   PÁGINAS DE AUTENTICAÇÃO
   ==================== */

/* Card de Autenticação */
.auth-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.auth-card .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 2rem;
}

.auth-header {
    text-align: center;
}

.auth-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.auth-icon i {
    font-size: 1.8rem;
}

.auth-card .card-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.auth-card .card-header p {
    opacity: 0.9;
    margin: 0;
}

.auth-card .card-body {
    padding: 2rem;
}

/* Formulário */
.auth-form .form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.auth-form .form-label i {
    color: var(--primary);
    width: 20px;
}

.auth-form .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.auth-form .input-group-text {
    background: var(--light);
    border: 1px solid var(--gray-light);
    border-right: none;
    color: var(--gray);
    padding: 0.75rem 1rem;
}

.auth-form .form-control,
.auth-form .form-select {
    border: 1px solid var(--gray-light);
    border-left: none;
    padding: 0.75rem 1rem;
    height: auto;
    font-size: 1rem;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(48, 151, 255, 0.25);
}

.auth-form .form-control:focus + .input-group-text {
    border-color: var(--primary);
}

.auth-form .btn-outline-secondary {
    border: 1px solid var(--gray-light);
    border-left: none;
    color: var(--gray);
}

.auth-form .btn-outline-secondary:hover {
    background: var(--light);
    color: var(--primary);
}

/* Divisor */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-light);
}

.divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Social Login */
.social-login .btn-outline-dark,
.social-login .btn-outline-primary {
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-login .btn-outline-dark:hover {
    background: #333;
    color: white;
}

.social-login .btn-outline-primary:hover {
    background: #4267B2;
    color: white;
    border-color: #4267B2;
}

/* Sidebar de Benefícios */
.auth-sidebar {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.auth-sidebar h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.2rem;
    color: white;
}

.benefit-content h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.benefit-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Estatísticas */
.stats-card {
    background: linear-gradient(135deg, rgba(48, 151, 255, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(48, 151, 255, 0.1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* Form Check */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(48, 151, 255, 0.25);
}

/* Links */
.text-primary {
    color: var(--primary) !important;
    text-decoration: none;
}

.text-primary:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    .auth-card .card-header {
        padding: 1.5rem;
    }
    
    .auth-card .card-body {
        padding: 1.5rem;
    }
    
    .auth-sidebar {
        padding: 1.5rem;
    }
    
    .auth-icon {
        width: 50px;
        height: 50px;
    }
    
    .auth-icon i {
        font-size: 1.5rem;
    }
    
    .auth-card .card-header h2 {
        font-size: 1.5rem;
    }
}

/* Mensagens de erro */
.invalid-feedback.d-block {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Placeholder color */
::placeholder {
    color: #adb5bd !important;
    opacity: 1;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.5s ease;
}

.benefit-item {
    animation: fadeIn 0.5s ease;
    animation-fill-mode: both;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }

/* Utilitários do Bootstrap-like */
.d-grid {
    display: grid !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-lg-0 { margin-top: 0 !important; }

.text-center { text-align: center !important; }
.text-muted { color: var(--gray) !important; }

.fw-bold { font-weight: 600 !important; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-4, .col-6, .col-md-6, .col-lg-5, .col-lg-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.bg-white {
    background-color: white !important;
}


/* ====================
   NOTÍCIAS - RESPONSIVO
   ==================== */

/* Container da Página */
.news-page {
    padding: 2rem 0;
}

/* Header */
.news-header {
    margin-bottom: 3rem;
}

.news-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.news-header .subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Barra de Busca */
.news-search {
    max-width: 400px;
}

.news-search .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.news-search input {
    border: none;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
}

.news-search button {
    background: var(--primary);
    border: none;
    padding: 0 1.5rem;
    transition: background 0.3s ease;
}

.news-search button:hover {
    background: var(--primary-dark);
}

/* Grid de Notícias - Responsivo */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Card de Notícia */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.news-meta i {
    margin-right: 0.25rem;
    font-size: 0.875rem;
}

.news-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--dark);
    flex: 1;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Paginação Responsiva */
.pagination-wrapper {
    margin: 2rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(48, 151, 255, 0.1);
    border-color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Estado Vazio */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin-top: 3rem;
}

.newsletter-section h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin-bottom: 1rem;
    color: var(--primary);
}

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.newsletter-form input {
    border: none;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--primary);
    border: none;
    padding: 0 1.5rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* ====================
   DETALHE DA NOTÍCIA
   ==================== */

.single-news {
    padding: 2rem 0;
}

/* Cabeçalho */
.news-detail-header {
    margin-bottom: 2rem;
}

.news-detail-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 1rem;
}

.news-meta-large {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    font-size: 1.5rem;
    color: var(--gray);
}

.author-details {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.meta-details i {
    margin-right: 0.25rem;
}

/* Compartilhamento Responsivo */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-right: 0.5rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }

@media (max-width: 576px) {
    .news-meta-large {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Imagem Destacada */
.featured-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* Conteúdo */
.news-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 3rem;
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.news-content h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.news-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
}

.news-content ul,
.news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

.news-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--gray);
}

/* Tags */
.news-tags {
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.tags-title {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    color: var(--gray);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Layout Principal vs Sidebar */
.news-main {
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .news-main {
        margin-bottom: 0;
    }
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.widget-header {
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
}

.widget-header h4 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-content {
    padding: 1.5rem;
}

/* Notícias Recentes na Sidebar */
.recent-news {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recent-news-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.recent-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-news-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-news-content h5 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-news-content h5 a:hover {
    color: var(--primary);
}

.recent-news-meta {
    font-size: 0.875rem;
    color: var(--gray);
}

.recent-news-meta i {
    margin-right: 0.25rem;
}

/* Newsletter Sidebar */
.sidebar-newsletter .input-group {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.sidebar-newsletter input {
    border: 1px solid var(--gray-light);
    border-right: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.sidebar-newsletter button {
    background: var(--primary);
    border: 1px solid var(--primary);
    padding: 0 1rem;
    transition: background 0.3s ease;
}

.sidebar-newsletter button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Botão Voltar */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.back-button:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Notícias Relacionadas */
.related-news-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-light);
}

.related-news-section h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .related-news-grid {
        grid-template-columns: 1fr;
    }
}

.related-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-news-content {
    padding: 1.5rem;
    flex: 1;
}

.related-news-content h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.related-news-content h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-news-content h4 a:hover {
    color: var(--primary);
}

.related-news-meta {
    font-size: 0.875rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-news-meta i {
    font-size: 0.875rem;
}

/* Responsividade Geral */
@media (max-width: 768px) {
    .news-page {
        padding: 1rem 0;
    }
    
    .news-header {
        margin-bottom: 2rem;
    }
    
    .news-search {
        max-width: 100%;
    }
    
    .single-news {
        padding: 1rem 0;
    }
    
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .news-content {
        font-size: 1rem;
    }
    
    .news-content h2 {
        font-size: 1.5rem;
    }
    
    .news-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .news-card-image {
        height: 180px;
    }
    
    .news-card-body {
        padding: 1.25rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .news-meta {
        font-size: 0.8rem;
    }
    
    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 0.5rem;
        font-size: 0.875rem;
    }
    
    .related-news-section h3 {
        font-size: 1.25rem;
    }
}

/* Animações Suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card,
.sidebar-widget,
.related-news-card {
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

/* Delay para os cards */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

/* Loader para imagens */
.news-card-image {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.news-card-image.loaded {
    background: none;
    animation: none;
}