/* Premium Vanilla CSS */

:root {
    --primary-color: #0d253f; /* Azul Marinho Profundo */
    --primary-light: #1f3b58;
    --accent-color: #007bff; /* Azul vibrante para botões */
    --accent-hover: #0056b3;
    --text-color: #333333;
    --text-muted: #6c757d;
    --bg-color: #f8f9fa;
    --bg-white: #ffffff;
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Roboto', -apple-system, sans-serif;
    --border-color: #dee2e6;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    color: var(--bg-white);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #e9ecef;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: #ffffff;
}

/* Main Content */
main {
    flex: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Cards Wrapper (Blog Posts) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.post-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.post-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.post-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--accent-color);
    color: white !important;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease;
}

.btn:hover {
    background-color: var(--accent-hover);
}

/* Article Page */
.article-header {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.article-content {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul {
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    margin-bottom: 20px;
}

/* Single Page Content */
.page-content {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 60px auto;
}

/* Footer (Crucial for White Hat) */
footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 50px 0 20px;
    font-size: 0.9rem;
    border-top: 4px solid var(--primary-color);
}

footer .footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer a {
    color: #a0a0a0;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 10px;
    color: #777;
    text-align: justify;
}

/* Helpers */
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
