@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    line-height: 1.6;
}

.navbar {
    background-color: #0c4c7d;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    color: white;
    text-align: center;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: #1a6da8;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    background-color: #1a6da8;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background-color: #25D366;
    color: white !important;
    border-radius: 50px;
    padding: 10px 22px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-4px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.4);
}

.title {
    text-align: center;
    padding: 2rem 0;
}

.title h1 {
    color: #0c4c7d;
    font-size: 2.5rem;
    margin: 0;
}

main {
    flex: 1;
    background-color: white;
    padding: 40px 0;
}

.page-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, #eef5f9, #d0e0eb);
    color: #0c4c7d;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

.artigos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.artigo-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.artigo-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.artigo-card-image {
    width: 100%;
    height: 220px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease;
}

.artigo-card:hover .artigo-card-image {
    transform: scale(1.05); 
}

.artigo-card-content {
    padding: 20px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.artigo-card-title {
    font-size: 1.35rem;
    color: #0c4c7d;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.artigo-card-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.artigo-card-readmore {
    display: inline-block;
    color: #1a6da8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.artigo-card-readmore:hover {
    color: #0c4c7d;
    text-decoration: underline;
}

.article-detail-main {
    padding: 0; 
    max-width: 900px; 
    margin: 40px auto; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.08); 
    border-radius: 12px;
    overflow: hidden; 
    background-color: white;
}

.article-header-container {
    position: relative;
    width: 100%;
    height: 350px; 
    overflow: hidden;
    display: flex;
    align-items: flex-end; 
    padding: 30px; 
    box-sizing: border-box;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.article-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7);
}

.article-main-title {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.article-content-wrapper {
    padding: 30px;
}

.article-text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.article-text-content p {
    margin-bottom: 1em;
    text-align: justify;
}

.article-text-content h2,
.article-text-content h3 {
    color: #0c4c7d;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.back-to-articles {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #1a6da8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.back-to-articles:hover {
    background-color: #0c4c7d;
}

footer {
    background-color: #0c4c7d;
    color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

footer > div.max-w-7xl {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1280px;
    gap: 2rem;
}

footer > div.max-w-7xl > div {
    flex: 1 1 auto;
    min-width: 200px;
    text-align: center;
}

footer > div.max-w-7xl > div:first-child {
    text-align: left;
}

footer > div.max-w-7xl > div:first-child img {
    height: 3rem;
    width: auto;
    max-width: 100%;
}

@media (min-width: 768px) {
    footer > div.max.w-7xl > div {
        text-align: left;
    }
    footer > div.max-w-7xl > div:first-child {
        flex-basis: 25%;
    }
    footer > div.max-w-7xl > div:nth-child(2),
    footer > div.max-w-7xl > div:nth-child(3),
    footer > div.max-w-7xl > div:nth-child(4) {
        flex-basis: calc(75% / 3);
    }
}

@media (min-width: 1024px) {
    footer > div.max-w-7xl > div {
        flex-basis: 25%;
    }
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #a0aec0;
}

footer img {
    border-radius: 0.375rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    align-self: flex-start;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-end;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0c4c7d;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-link {
        padding: 10px 20px;
        font-size: 1rem;
        width: 100%;
        text-align: left;
    }

    .whatsapp-btn {
        padding: 10px 20px !important;
        font-size: 1rem;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .artigos-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .artigo-card-image {
        height: 180px;
    }

    .artigo-card-title {
        font-size: 1.2rem;
    }
    
    .artigo-card-excerpt {
        font-size: 0.95rem;
    }

    .article-detail-main {
        margin: 20px 15px;
        border-radius: 8px;
    }
    .article-header-container {
        height: 250px;
        padding: 20px;
    }
    .article-main-title {
        font-size: 2rem;
    }
    .article-content-wrapper {
        padding: 20px;
    }
    .article-text-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 30px 10px;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }

    .nav-list {
        gap: 5px;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    .whatsapp-btn {
        padding: 8px 15px !important;
        font-size: 0.9rem;
    }

    .artigo-card-image {
        height: 150px;
    }
    .artigo-card-title {
        font-size: 1.1rem;
    }
    .artigo-card-excerpt {
        font-size: 0.85rem;
    }

    .article-header-container {
        height: 200px;
    }
    .article-main-title {
        font-size: 1.8rem;
    }
}

.admin-btn {
    position: fixed; 
    bottom: 20px;     
    right: 20px;     
    background-color: #0c4c7d; 
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.admin-btn:hover {
    background-color: #1a6da8; 
    transform: translateY(-2px); 
}

@media (max-width: 480px) {
    .admin-btn {
        padding: 10px 15px;
        font-size: 0.9em;
        bottom: 15px;
        right: 15px;
    }
}