body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #CCCCCC;
    color: #000000;
}

a {
  color: #696969 !important;
  text-decoration: none !important;
  font-weight: 500;        /* texto levemente mais forte */
  transition: color 0.3s;  /* anima a mudança de cor */
}

a:hover {
  color: #CC0000 !important;          /* cor ao passar o mouse */
  text-decoration: underline; /* adiciona sublinhado no hover */
}

a:active {
  color: #CC0000;          /* cor ao clicar */
}

a:visited {
  color: #000000;          /* cor de link já visitado */
}

header {
    background-color: #000000;
    padding: 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.logo {
    order: 2;
    text-align: right;
}

.logo-circle {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
}

.header-text {
    order: 1;
    color: #FF0000;
}

.header-text h1 {
    margin: 0;
    font-size: 1.5rem;
}

.header-text p {
    margin: 0.2rem 0 0 0;
    font-size: 1rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    text-align: justify;
    padding: 3rem 2rem;
    background-color: #CCCCCC;
}

.article {
    background-color: #000000;
    color: #CCCCCC;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    transition: transform 0.2s;
}

.article:hover {
    transform: translateY(-4px);
}

.article h2 {
    color: #CCCCCC;
    margin-top: 0;
    font-size: 1.8rem;
}

.article-meta {
    color: #999999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #CCCCCC;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    transition: all 0.3s;
}

.read-more:hover {
    background-color: #CCCCCC;
    color: #000000;
}

footer {
    background-color: #000000;
    color: #CCCCCC;
    padding: 3rem 0rem 0.2rem;
    margin-top: 3rem;
}

.footer-image{
    text-align: center;
    margin-bottom: 0.5rem;
}

.footer-content {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #CCCCCC;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #FF0000;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #CCCCCC;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #CCCCCC;
    color: #000000;
}

.footer-bottom {
    border-top: 1px solid #333333;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #999999;
    font-size: 0.9rem;
}

.navbar {
    background-color: #CCCCCC;
    padding: 1rem 2rem;
    border-bottom: 2px solid #000000;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: #000000 !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: #000000;
    color: #CCCCCC !important;
}

.nav-link.active {
    background-color: #FF0000;
    color: #CCCCCC;
}

.nav-link.active:hover {
    background-color: #CC0000;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #000000;
    color: #CCCCCC;
    border: 2px solid #CCCCCC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #CCCCCC;
    color: #000000;
    transform: translateY(-2px);
}

div.card-head {
    margin-bottom: 20px;
}

.image-logo-page {
  height: 100px;
  position: absolute;
  right: 5px; 
  top: 0;
}

@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo {
        order: 1;
        text-align: center;
    }

    .header-text {
        order: 2;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .footer-content {
        position: sticky;
        bottom: 0;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}