/* Estilos específicos para a página do blog */
.blog-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 40px;
}

.blog-single-content {
    flex: 1;
}

.blog-single-sidebar {
    width: 300px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.blog-single-header {
    margin-bottom: 30px;
}

.blog-single-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
}

.blog-single-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-single-category {
    background-color: #c41e3a;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.blog-single-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 8px;
}

.blog-single-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-single-body h2 {
    color: #c41e3a;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.blog-single-body h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.blog-single-body p {
    margin-bottom: 20px;
}

.blog-single-body ul, .blog-single-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-single-body li {
    margin-bottom: 10px;
}

.blog-single-body blockquote {
    border-left: 4px solid #c41e3a;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.blog-single-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.blog-single-sidebar {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.sidebar-title {
    font-size: 1.3rem;
    color: #c41e3a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c41e3a;
}

.sidebar-topics {
    list-style: none;
    padding: 0;
}

.sidebar-topics li {
    margin-bottom: 10px;
}

.sidebar-topics a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-topics a:hover {
    background-color: #c41e3a;
    color: white;
}

.sidebar-topics a.active {
    background-color: #c41e3a;
    color: white;
}

.blog-single-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.blog-tags {
    margin-bottom: 30px;
}

.blog-tags-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 5px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #c41e3a;
    color: white;
}

.blog-share {
    margin-bottom: 30px;
}

.blog-share-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
}

.social-share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-share-button.facebook {
    background-color: #1877f2;
}

.social-share-button.twitter {
    background-color: #1da1f2;
}

.social-share-button.linkedin {
    background-color: #0077b5;
}

.social-share-button.whatsapp {
    background-color: #25d366;
}

.social-share-button:hover {
    transform: scale(1.1);
}

.blog-author-box {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.author-info p {
    margin-bottom: 10px;
    color: #555;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    color: #c41e3a;
    font-size: 1.2rem;
}

.related-posts {
    margin-top: 50px;
}

.related-posts-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c41e3a;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px #0000001A;
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.related-post-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.related-post-link {
    color: #c41e3a;
    text-decoration: none;
    font-weight: bold;
}

.related-post-link:hover {
    text-decoration: underline;
}

.comments-section {
    margin-top: 50px;
}

.comments-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c41e3a;
}

.comment-form {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-list {
    margin-top: 30px;
}

.comment {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px #0000001A;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.comment-date {
    color: #666;
    font-size: 0.9rem;
}

.comment-content {
    color: #333;
    line-height: 1.6;
}

.comment-reply {
    margin-top: 15px;
    margin-left: 65px;
}

/* Responsividade */
@media (max-width: 992px) {
    .blog-single-container {
        flex-direction: column;
    }
    
    .blog-single-sidebar {
        width: 100%;
        position: static;
        margin-top: 30px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-single-title {
        font-size: 2rem;
    }
    
    .blog-single-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
}
