:root {
    --primary-blue: #0056b3;
    --secondary-blue: #007bff;
    --light-blue: #e3f2fd;
    --dark-blue: #003d82;
    --white: #ffffff;
    --black: #333333;
    --gray: #f8f9fa;
    --dark-gray: #6c757d;
    --accent-blue: #4a90e2;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.logo-container img:hover {
    transform: scale(1.05);
}

.slogan {
    color: var(--white);
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
}

.search-container {
    display: flex;
    width: 35%;
    max-width: 400px;
}

.search-container input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.search-container input:focus {
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-blue);
}

.search-container button {
    background-color: var(--dark-blue);
    color: var(--white);
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover {
    background-color: var(--accent-blue);
}

.user-actions {
    display: flex;
    gap: 1.5rem;
}

.user-actions a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.user-actions a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.user-actions i {
    margin-right: 0.5rem;
}

/* Navigation Styles */
nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--light-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.category-menu {
    display: flex;
    list-style: none;
    justify-content: space-between;
    flex-wrap: wrap;
}

.category-menu li {
    position: relative;
}

.category-menu a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.2rem;
    display: block;
    transition: var(--transition);
    position: relative;
}

.category-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-blue);
    transition: var(--transition);
    transform: translateX(-50%);
}

.category-menu a:hover {
    color: var(--primary-blue);
}

.category-menu a:hover::after {
    width: 80%;
}

/* Main Content Styles */
.container {
    max-width: 1400px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.section-title {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--accent-blue);
}

.featured-news {
    display: block;
    margin-bottom: 2rem;
}

.main-news {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}

.main-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.main-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.main-news:hover img {
    transform: scale(1.05);
}

.main-news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--white);
    padding: 2.5rem 2rem 2rem;
}

.main-news-content h2 {
    font-size: 2.0rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.main-news-content p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.read-more {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-blue);
}

.read-more:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.secondary-news {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--gray);
}

.news-card img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-content h3 {
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.news-card-content p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.news-card-content .category {
    display: inline-block;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.regular-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.regular-news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.regular-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.regular-news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.regular-news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.regular-news-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.regular-news-content p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.ad-container {
    background: linear-gradient(135deg, var(--light-blue), #d4e7fb);
    border: 2px dashed var(--primary-blue);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    min-height: 280px;
    transition: var(--transition);
}

.ad-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.ad-container i {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
}

.ad-container h3 {
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.ad-container p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.most-read {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: var(--shadow);
}

.most-read h3 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    position: relative;
}

.most-read h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-blue);
}

.most-read-list {
    list-style: none;
}

.most-read-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.most-read-list li:hover {
    background-color: var(--gray);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 6px;
}

.most-read-list li:last-child {
    border-bottom: none;
}

.most-read-list a {
    color: var(--black);
    text-decoration: none;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: var(--transition);
}

.most-read-list a:hover {
    color: var(--primary-blue);
}

.most-read-list .number {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: var(--white);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-column h4 {
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.9rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 0.7rem;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 1200px) {
    .regular-news {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .news-card img {
        width: 140px;
        height: 100px;
    }
    
    .main-news {
        height: 380px;
    }
    
    .main-news-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 1.5rem;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .search-container {
        width: 100%;
        max-width: none;
    }
    
    .category-menu {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .category-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .regular-news {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-card img {
        width: 100%;
        height: 180px;
    }
    
    .main-news {
        height: 300px;
    }
    
    .main-news-content {
        padding: 1.5rem 1.5rem 1.5rem;
    }
    
    .main-news-content h2 {
        font-size: 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .main-news-content h2 {
        font-size: 1.3rem;
    }
    
    .user-actions {
        gap: 1rem;
    }
    
    .user-actions a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}