/* Notícias Papai Solar - Estilos Compartilhados */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF8C00;
    --dark-blue: #1a2332;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #666;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(255, 140, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--light-bg);
}

/* Header */
.header {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.btn-voltar {
    background: var(--primary-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-voltar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #2c3e50 100%);
    color: white;
    padding: 80px 20px 120px; /* Aumentado padding bottom para acomodar a imagem sobreposta */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.9;
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95em;
}

.meta-item {
    opacity: 0.8;
}

/* Featured Image Section */
.featured-image-section {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    margin-top: -100px;
    margin-bottom: -40px;
    padding: 0 20px;
    pointer-events: none;
}

.featured-image-container {
    max-width: 500px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(26, 35, 50, 0.3));
    animation: fadeInUp 1s ease-out;
    pointer-events: auto;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.featured-image-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

/* Article Container */
.article-container {
    max-width: 1000px;
    margin: 0 auto 60px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-container {
    animation: fadeInUp 0.8s ease-out;
}

.article-content {
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: var(--shadow);
}

.article-content h2 {
    color: var(--dark-blue);
    font-size: 2em;
    margin: 50px 0 20px;
    font-weight: 700;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    color: var(--dark-blue);
    font-size: 1.5em;
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-content h4 {
    color: var(--dark-blue);
    font-size: 1.2em;
    margin: 20px 0 10px;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin: 20px 0 20px 30px;
}

.article-content li {
    margin-bottom: 12px;
    font-size: 1.05em;
    line-height: 1.7;
}

/* Boxes */
.highlight-box, .info-box, .quote-box, .cta-box {
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 140, 0, 0.05));
    border-left: 5px solid var(--primary-orange);
}

.info-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-left: 5px solid #3b82f6;
}

.quote-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-left: 5px solid #10b981;
    font-style: italic;
    font-size: 1.15em;
    line-height: 1.8;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-orange), #ff6b00);
    color: white;
    text-align: center;
}

.cta-box h3 {
    color: white;
    margin-top: 0;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.95);
}

.btn-cta {
    background: white;
    color: var(--primary-orange);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* More Articles Section */
.more-articles {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.more-articles h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--dark-blue);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-card h3 {
    color: var(--dark-blue);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.article-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-orange);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-orange), #ff6b00);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content p {
    opacity: 0.8;
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .article-content {
        padding: 30px 20px;
    }
    
    .article-content h2 {
        font-size: 1.6em;
    }
    
    .nav-links {
        display: none;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
