/* Estilos para a página de blog */

/* Hero Section */
.blog-hero {
    background-color: #003366;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.blog-hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Filter */
.blog-filter {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-bottom: 50px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-filter.scrolled {
    padding: 10px 0;
}

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

.blog-categories {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-category {
    padding: 8px 15px;
    border-radius: 30px;
    background-color: #fff;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.blog-category:hover {
    background-color: #f0f0f0;
}

.blog-category.active {
    background-color: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

.blog-search {
    position: relative;
    width: 300px;
}

.blog-search input {
    width: 100%;
    padding: 10px 15px;
    padding-right: 40px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.blog-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0056b3;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

/* Featured Post */
.featured-post {
    margin-bottom: 60px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.featured-post-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.featured-post-image {
    height: 100%;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-post-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #e6f0ff;
    color: #0056b3;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.featured-post-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.featured-post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #777;
    font-size: 0.9rem;
}

.featured-post-date {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.featured-post-date i {
    margin-right: 5px;
}

.featured-post-read-time {
    display: flex;
    align-items: center;
}

.featured-post-read-time i {
    margin-right: 5px;
}

.featured-post-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #0056b3;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.featured-post-button:hover {
    background-color: #003d7a;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #e6f0ff;
    color: #0056b3;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.blog-card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #777;
    font-size: 0.8rem;
}

.blog-card-date {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.blog-card-date i {
    margin-right: 5px;
}

.blog-card-read-time {
    display: flex;
    align-items: center;
}

.blog-card-read-time i {
    margin-right: 5px;
}

.blog-card-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0056b3;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    font-size: 0.9rem;
}

.blog-card-button:hover {
    background-color: #003d7a;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-bottom: 80px;
}

.load-more-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #0056b3;
    border: 2px solid #0056b3;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.load-more-button:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #003366;
    padding: 80px 0;
    margin-bottom: 80px;
    color: #ffffff;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.newsletter-description {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex-grow: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.newsletter-button {
    padding: 15px 25px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: #003d7a;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0056b3;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #003d7a;
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.5rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: rotate(30deg);
}

.dark-mode-toggle i {
    font-size: 1.5rem;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode .blog-filter {
    background-color: #2a2a2a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .blog-category {
    background-color: #333;
    color: #f0f0f0;
    border-color: #444;
}

body.dark-mode .blog-category:hover {
    background-color: #444;
}

body.dark-mode .blog-category.active {
    background-color: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

body.dark-mode .blog-search input {
    background-color: #333;
    color: #f0f0f0;
    border-color: #444;
}

body.dark-mode .featured-post,
body.dark-mode .blog-card {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .featured-post-title,
body.dark-mode .blog-card-title {
    color: #f0f0f0;
}

body.dark-mode .featured-post-excerpt,
body.dark-mode .blog-card-excerpt {
    color: #ccc;
}

body.dark-mode .featured-post-meta,
body.dark-mode .blog-card-meta {
    color: #aaa;
}

body.dark-mode .load-more-button {
    background-color: #333;
    color: #f0f0f0;
    border-color: #0056b3;
}

body.dark-mode .load-more-button:hover {
    background-color: #0056b3;
    color: #fff;
}

body.dark-mode .newsletter-section {
    background-color: #2a2a2a;
}

body.dark-mode .newsletter-title {
    color: #f0f0f0;
}

body.dark-mode .newsletter-subtitle {
    color: #ccc;
}

body.dark-mode .newsletter-input {
    background-color: #333;
    color: #f0f0f0;
    border-color: #444;
}

body.dark-mode .dark-mode-toggle {
    background-color: #f0f0f0;
    color: #333;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-post-container {
        grid-template-columns: 1fr;
    }
    
    .featured-post-image {
        height: 300px;
    }
    
    .blog-search {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-filter-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .blog-search {
        width: 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-post-content {
        padding: 25px;
    }
    
    .featured-post-title {
        font-size: 1.8rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .newsletter-button {
        border-radius: 5px;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 60px 0;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .featured-post-image {
        height: 200px;
    }
    
    .featured-post-title {
        font-size: 1.5rem;
    }
    
    .blog-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog-category {
        white-space: nowrap;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
}
