:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --secondary-color-hover: #97430b;
    --text-color: #333333;
    --text-color-search-link: #1667cb;
    --background-color: #ffffff;
    --accent-color: #f5f5f5;
    --hover-color: #004499;
    --border-color: #e0e0e0;
    --color-text-input-newsletter: rgb(91, 91, 91);
}

.dark {
    --primary-color: #4d94ff;
    --secondary-color: #ff944d;
    --secondary-color-hover: #ba500a;
    --text-color: #f5f5f5;
    --background-color: #1a1a1a;
    --accent-color: #2a2a2a;
    --hover-color: #1265ca;
    --border-color: #444444;
    --color-text-input-newsletter: rgb(187, 187, 187);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active {
    font-weight: bold;
}

.line-toggle-menu,
.social-icons-menu-mobile,
#logoToggle {
    display: none;
}

.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
}

.dark-mode-toggle .fa-sun {
    display: none;
}

.dark .dark-mode-toggle .fa-moon {
    display: none;
}

.dark .dark-mode-toggle .fa-sun {
    display: inline-block;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle img {
    height: 50px;
    display: none;
}

.hidden {
    display: none;
    position: absolute;
}

/* Hero Sections */
.hero, .contact-hero, .about-hero {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 100px 0 50px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.hero h1, .contact-hero h1, .about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p, .contact-hero p, .about-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
main {
    padding-top: 50px;
    display: flex;
    gap: 40px;
}

.content {
    flex: 2;
}

.sidebar {
    flex: 1;
}

/* Blog Posts */
.blog-posts, .category-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    background-color: var(--accent-color);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-post h3 {
    font-size: 1.5rem;
    margin: 20px 20px 10px;
    color: var(--primary-color);
}

.blog-post p {
    margin: 0 20px 20px;
    font-size: 1rem;
}

.blog-post .post-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px 10px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.blog-post .post-meta a {
    margin-right: 15px;
    color: var(--secondary-color);
}
.blog-post .post-meta a:hover {
    color: var(--secondary-color-hover);
}

.blog-post .post-meta span {
    margin-right: 15px;
}

.read-more {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: var(--hover-color);
}

.load-more-button {
    display: block;
    width: 200px;
    margin: 30px auto;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more-button:hover {
    background-color: var(--hover-color);
}

/* Sidebar Widgets */
.widget {
    background-color: var(--accent-color);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.widget h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-form button {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: var(--hover-color);
}

.recent-posts ul,
.categories ul {
    list-style: none;
}

.recent-posts li,
.categories li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.categories li {
    position: relative;
    width: 100%;
}

.recent-posts li:last-child,
.categories li:last-child {
    border-bottom: none;
}

.recent-posts a,
.categories a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.recent-posts a:hover,
.categories a:hover {
    color: var(--primary-color);
}

.categories a {
    display: flex;
    align-items: left;
    width: 100%;
    position: relative;
}

.categories a span {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin: 0 40px 0 94%;
    position: absolute;
}

.category-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

/* newsletter - blog */
.post-newsletter {
    width: 100%;
}

#newsletter-form {
    display: flex;
    margin-top: 15px;
    width: 100%;
 }
 
 #newsletter-form .newslatter-input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    height: 48px;
 }
 #newsletter-form .newslatter-input::placeholder {
    color: var(--color-text-input-newsletter);
 } 
 #newsletter-form .cta-button-footer {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 18px;
    margin-top: 10px;
    cursor: pointer;
    box-sizing: border-box; 
    border: 2px solid transparent;
 }
 #newsletter-form .cta-button-footer:hover {
    background-color: var(--hover-color);
    border-color: var(--border-button-color);
 }
 
 #newsletter-form button {
    border: none;
    border-radius: 0 5px 5px 0;
    font-size: 16px;
 }

/* Footer */
footer {
    background-color: var(--accent-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .container a {
    color: var(--primary-color);
    font-weight: bold;
}
footer .container a:hover {
    opacity: .7;
}

footer ul {
    list-style: none;
    display: flex;
}

footer ul li {
    margin-left: 20px;
}

footer ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary-color);
}

.link-site {
    color: var(--primary-color);
    font-weight: bold;
}
.link-site:hover {
    color: var(--hover-color);
}

/* Search Results */
.search-results {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.search-results-content {
    background-color: var(--background-color);
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 5px;
    position: relative;
}

.search-results h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.search-results a {
    color: var(--text-color-search-link);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

.search-result-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.search-result-item p {
    margin-bottom: 10px;
}

.search-result-item .post-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 15px;
    text-align: center;
    z-index: 9999;
    display: none;
}

.cookie-consent p {
    margin-bottom: 10px;
}

.cookie-consent a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.cookie-consent a:hover {
    color: var(--hover-color);
}

.cookie-consent button {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-consent button:hover {
    background-color: var(--hover-color);
}

/* Category Page Styles */
.category-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 5rem;
}

.category-description {
    margin-bottom: 2rem;
}

.category-aside-page {
    margin-top: 5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo img {
        margin-left: 10px;
        height: 30px;
        position: absolute;
        top: 32px;
    }

    .menu-toggle {
        display: block;
        position: relative;
    }

    .menu-toggle img {
        height: 50px;
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--background-color);
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding-top: 80px;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .line-toggle-menu {
        display: inline-block;
        height: 4px;
        background-color: var(--border-color);
    }
    .line-01 {
        width: 30%;
    }
    .line-02 {
        width: 40%;
    }
    .line-03 {
        width: 50%;
    }
    #logoToggle {
        display: block;
    }

    .social-icons-menu-mobile {
        display: inline-block;
        position: absolute;
        bottom: 69px;
        left: 72px;
    }
    .link-facebook-menu,
    .link-instagram-menu,
    .link-linkedin-menu {
        color: var(--primary-color);
        height: 40px;
        margin: 0 10px;
    }
    .social-icons-menu-mobile .fa-facebook,
    .social-icons-menu-mobile .fa-instagram,
    .social-icons-menu-mobile .fa-linkedin {
        font-size: 30px;
    }

    #logoToggle img {
        position: absolute;
        top: 343px;
        left: 87px;
        height: 150px;
    }

    .dark-mode-toggle {
        position: absolute;
        top: 35px;
        right: 67px;
    }

    main {
        flex-direction: column;
    }

    .category-title {
        margin-top: 0px;
        padding: 0 10px;
    }

    .category-description {
        padding: 0 10px;
    }

    .sidebar {
        order: -1;
    }

    .search-results-content {
        margin: 20px;
        padding: 15px;
    }

    /* newsletter - blog */
    .post-newsletter {
        padding: 10px;
    }

    .hero, .contact-hero, .about-hero {
        padding: 100px 0 20px;
    }

    .hero h1, .contact-hero h1, .about-hero h1 {
        font-size: 2rem;
    }

    .hero p, .contact-hero p, .about-hero p {
        font-size: 1rem;
    }

    footer .container {
        flex-direction: column;
    }

    footer ul {
        margin-top: 10px;
    }

    footer ul li {
        margin: 0 10px;
    }

    .blog-post .post-meta {
        padding: 0 16px 10px;
    }

    .blog-post img {
        height: 200px;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .blog-post img {
        height: 250px;
    }
}

/* Animation for menu toggle button */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: tomato;
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: tomato;
}
.menu-toggle.active .hidden {
    display: block;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}


/* Modal */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
 }
 
 .modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
 }
 
 .modal-content {
    position: relative;
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 500px;
    color: var(--text-color);
 }
 
 /* Botão 'X' para fechar o modal */
 .close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
 }
 
 /* Spinner de carregamento */
 .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
 }
 
 /* Animação do spinner */
 @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
 }
 
 /* Mensagem de resposta */
 #responseMessage {
    font-size: 18px;
    margin-top: 20px;
    color: var(--text-color);
 }
 
 /* Botão 'OK' */
 .ok-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
 }
 
 .ok-button:hover {
    background-color: var(--hover-color);
 }
 
 .hidden {
    display: none;
 }

 /* responsive */
 @media (max-width: 768px) {
    .modal-content {
        width: 350px;
     }
}
