/* assets/css/style.css */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f8f9fa; 
    color: #333; 
    line-height: 1.6; 
}

a { 
    text-decoration: none; 
    color: #007bff; 
}

a:hover {
    text-decoration: underline;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Header */
header { 
    background: #fff; 
    border-bottom: 3px solid #007bff; 
    padding: 20px 0; 
    margin-bottom: 30px;
}

header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

header h1 {
    font-size: 2rem;
    margin: 0;
}

header h1 a { 
    color: #007bff; 
    font-weight: bold;
}

header h1 a:hover {
    text-decoration: none;
    color: #0056b3;
}

nav a {
    margin-left: 20px;
    color: #555;
    font-weight: 500;
}

nav a:hover {
    color: #007bff;
}

/* Main Content */
main h2 {
    color: #222;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-left: 4px solid #007bff;
    padding-left: 15px;
}

/* News Grid */
.news-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 25px; 
    margin-top: 20px; 
}

.news-card { 
    background: #fff; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    background: #e9ecef;
}

.news-content { 
    padding: 20px; 
}

.news-content .categoria { 
    font-size: 0.85rem; 
    color: #007bff; 
    text-transform: uppercase; 
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.news-content h3 { 
    margin: 10px 0; 
    font-size: 1.3rem;
    line-height: 1.3;
}

.news-content h3 a { 
    color: #222; 
}

.news-content h3 a:hover {
    color: #007bff;
}

.news-content p {
    color: #666;
    font-size: 0.95rem;
    margin: 10px 0;
}

.news-content small { 
    color: #999; 
    font-size: 0.85rem; 
    display: block;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Footer */
footer { 
    background: #222; 
    color: #fff; 
    padding: 30px 0; 
    margin-top: 50px;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Single News Page */
.single-news { 
    max-width: 800px; 
    margin: 30px auto; 
    background: #fff; 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.single-news .categoria {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.single-news h1 { 
    font-size: 2.2rem; 
    margin-bottom: 15px;
    color: #222;
    line-height: 1.2;
}

.single-news .meta { 
    color: #666; 
    font-size: 0.9rem; 
    margin-bottom: 25px; 
    padding-bottom: 20px;
    border-bottom: 2px solid #eee; 
}

.single-news .main-image { 
    width: 100%; 
    border-radius: 8px; 
    margin-bottom: 25px; 
    background: #e9ecef;
}

.single-news .conteudo { 
    font-size: 1.1rem; 
    line-height: 1.8;
    color: #333;
}

.single-news .conteudo p {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav a {
        margin: 5px 10px;
        display: inline-block;
    }
    
    .single-news {
        padding: 20px;
    }
    
    .single-news h1 {
        font-size: 1.6rem;
    }
}