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

html {
    width: 100%;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --dark-bg: #1a1a1a;
    --darker-bg: #000000;
    --light-bg: #f5f5f5;
    --text-dark: #000000;
    --text-light: #666666;
    --white: #ffffff;
    --bg-reading: #F8F7F4;
    --border-color: #e0e0e0;
    --accent-gray: #808080;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-reading);
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: url('./menu.png') center center;
    background-size: cover;
    background-repeat: repeat;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--white);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.95);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin-top: 0.5rem;
    z-index: 1001;
}

.dropdown-content a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background-color: var(--white);
    box-shadow: 0 0 0 2px var(--accent-gray);
}

.search-box input {
    border: none;
    background: transparent;
    color: var(--white);
    padding: 0.2rem 0.5rem;
    outline: none;
    width: 180px;
    font-size: 0.9rem;
}

.search-box:focus-within input {
    color: var(--text-dark);
}

.search-box svg {
    width: 20px;
    height: 20px;
    fill: var(--text-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Banner */
.hero {
    margin-top: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: block;
    animation: fadeIn 1s ease;
    background: url('./banner.png');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    display: block;
    padding-top: 35%;
}

/* Hero com blur (página artigos) */
.hero-artigos {
    height: 0;
    padding-top: 35%;
}

.hero-artigos::before {
    display: none;
}

.hero-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4);
}

.hero-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
}

.hero-text p {
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

.hero-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.hero-content {
    display: none;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid var(--white);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
}

/* Articles Section */
.articles-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.articles-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #000000, #404040);
    position: relative;
    overflow: hidden;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.article-content {
    padding: 1rem 1.2rem;
}

.article-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 0.5rem;
}

.read-more::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.popular-article {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    opacity: 0.2;
}

.popular-content h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.popular-content h4:hover {
    color: var(--primary-color);
}

.popular-content small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 1rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.category-count {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-bg);
    text-align: center;
    color: var(--text-light);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--darker-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .search-box {
        width: 100%;
        margin-top: 1rem;
    }

    .hero::before {
        padding-top: 50%;
    }

    .hero-artigos {
        padding-top: 50%;
    }

    .hero {
        margin-top: 0;
        background-position: center 30%;
        background-size: cover;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .articles-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-image {
        height: 200px;
    }

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

    .article-excerpt {
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .navbar-container {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero::before {
        padding-top: 70%;
    }

    .hero-artigos {
        padding-top: 70%;
    }

    .hero {
        background-position: center 25%;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .article-image {
        height: 180px;
    }

    .article-content {
        padding: 0.8rem 1rem;
    }

    .article-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .article-excerpt {
        font-size: 0.85rem;
    }

    .article-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}
