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

.blog-post {
    flex: 2;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.post-header {
    padding: 30px;
    border-bottom: 1px solid #e0d7cd;
}

.project-tag {
    text-align: center;
    margin: 0 0 30px 0;
    font-weight: 400;
    font-size: 1em;
    letter-spacing: 1px;
    color: #8c6b54;
}

.post-title {
    font-family: 'Cormorant Unicase', serif;
    font-size: 2.5rem;
    color: #4a3f35;
    margin-bottom: 20px;
    text-align: center;
}

.post-meta {
    text-align: center;
    margin-bottom: 30px;
    color: #6b4f3a;
    font-size: 0.95rem;
}

.post-featured-image {
    margin: 30px 0;
}

.post-featured-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-summary {
    background-color: #f9f6f0;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.post-summary h2 {
    font-size: 1.5rem;
    color: #8c6b54;
    margin-top: 0;
}

.indice {
    background-color: #f5f1e8;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.indice h2 {
    font-size: 1.5rem;
    color: #8c6b54;
    margin-top: 0;
}

.indice ul {
    list-style-type: none;
    padding-left: 0;
}

.indice li {
    margin-bottom: 8px;
}

.indice a {
    color: #6b4f3a;
    text-decoration: none;
}

.indice a:hover {
    text-decoration: underline;
}

.post-content {
    padding: 30px;
}

.post-content h2 {
    font-family: 'Cormorant Unicase', serif;
    font-size: 2rem;
    color: #8c6b54;
    margin: 40px 0 20px 0;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #6b4f3a;
    margin: 30px 0 15px 0;
}

.post-content p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-image {
    margin: 30px 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

figcaption {
    font-size: 0.9rem;
    color: #6b4f3a;
    margin-top: 10px;
    font-style: italic;
}

.methodology-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.step {
    flex: 1;
    min-width: 200px;
    background-color: #f9f6f0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #8c6b54;
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 15px;
}

.results-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.references-list {
    list-style-type: none;
    padding-left: 0;
}

.references-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    text-indent: -20px;
}

.post-footer {
    padding: 30px;
    border-top: 1px solid #e0d7cd;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.post-navigation a {
    color: #6b4f3a;
    text-decoration: none;
    font-weight: bold;
}

.post-navigation a:hover {
    text-decoration: underline;
}

.post-license {
    font-size: 0.9rem;
    color: #6b4f3a;
    text-align: center;
}

/* Sidebar */
.blog-sidebar {
    flex: 1;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-family: 'Cormorant Unicase', serif;
    font-size: 1.5rem;
    color: #8c6b54;
    margin-top: 0;
    margin-bottom: 20px;
}

.author-photo {
    width: 60%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.related-posts {
    list-style-type: none;
    padding-left: 0;
}

.related-posts li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0d7cd;
}

.related-posts a {
    color: #6b4f3a;
    text-decoration: none;
}

.related-posts a:hover {
    text-decoration: underline;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    background-color: #f5f1e8;
    color: #6b4f3a;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background-color: #8c6b54;
    color: white;
}

/* Tags do post */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background-color: #8c6b54;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .blog-post-container {
        flex-direction: column;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .methodology-steps {
        flex-direction: column;
    }
}

    /* Estrutura principal do artigo */
    .blog-post {
        flex: 2;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .blog-post:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    
    .post-header {
        padding: 2.5rem;
        border-bottom: 1px solid #eaeaea;
    }
    
    /* Cabeçalho e metadados */
    .project-tag {
        display: inline-block;
        padding: 0.5rem 1.5rem;
        background-color: #4A3F35;
        color: white;
        border-radius: 50px;
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }
    
    .post-title {
        font-family: 'Cormorant Unicase', serif;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        color: #4A3F35;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .post-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
        margin-bottom: 2rem;
        color: #4A3F35;
        font-size: 0.95rem;
    }
    
    .post-meta p {
        margin: 0;
        display: flex;
        align-items: center;
    }
    
    .post-meta p::before {
        content: "•";
        margin-right: 0.5rem;
        color: #e74c3c;
    }
    
    .post-meta p:first-child::before {
        display: none;
    }
    
    /* Imagem destacada */
    .post-featured-image {
        margin: 2rem 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    .post-featured-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }
    
    .post-featured-image:hover img {
        transform: scale(1.02);
    }
    
    .post-featured-image figcaption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Resumo do artigo */
    .post-summary {
        background-color: #f8f9fa;
        padding: 1.5rem;
        border-radius: 8px;
        margin: 2rem 0;
        border-left: 4px solid #e74c3c;
    }
    
    .post-summary h2 {
        font-size: 1.5rem;
        color: #4A3F35;
        margin-top: 0;
        margin-bottom: 1rem;
    }
    
    /* Conteúdo principal */
    .post-content {
        padding: 0 2.5rem 2.5rem;
    }
    
    .post-content h1, 
    .post-content h2 {
        font-family: 'Cormorant Unicase', serif;
        color: #4A3F35;
        margin: 2.5rem 0 1.5rem;
        position: relative;
    }
    
    .post-content h1 {
        font-size: 2.2rem;
        border-bottom: 2px solid #e74c3c;
        padding-bottom: 0.5rem;
    }
    
    .post-content h2 {
        font-size: 1.8rem;
    }
    
    .post-content h2::after {
        content: "";
        display: block;
        width: 50px;
        height: 3px;
        background-color: #e74c3c;
        margin-top: 0.5rem;
    }
    
    .post-content h3 {
        font-size: 1.4rem;
        color: #74614f;
        margin: 2rem 0 1rem;
    }
    
    .post-content p {
        line-height: 1.8;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
    }
    
    /* Cards de conteúdo */
    .card {
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        margin: 1.5rem 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border: 1px solid #eaeaea;
        transition: all 0.3s ease;
    }
    
    .card:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
    }

    .blog-section {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }
    
    .blog-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .blog-card {
        position: relative;
        width: 100%;
        max-width: 300px;
        overflow: hidden;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .blog-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1;
    }
    
    .blog-content {
        padding: 15px;
        text-align: center;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .blog-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .btn-acessar {
        display: inline-block;
        padding: 8px 15px;
        background-color: #4A3F35;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
        text-align: center;
    }
    
    .btn-acessar:hover {
        background-color: #75573a;
    }
    
    /* Estilo do quadro "Em breve" */
    .coming-soon-card {
        width: 100%;
        max-width: 300px;
        background-color: #f9f9f9;
        padding: 20px;
        border: 2px solid #ccc;
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .coming-soon-card h3 {
        font-size: 1.5rem;
        color: #333;
        margin-bottom: 15px;
    }
    
    .coming-soon-card p {
        font-size: 1rem;
        color: #666;
    }
    
    .blog-section {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        margin-top: 40px;
    }
    
    .blog-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .blog-card {
        position: relative;
        width: 100%;
        max-width: 300px;
        overflow: hidden;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .blog-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1;
    }
    
    .blog-content {
        padding: 15px;
        text-align: center;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .blog-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .btn-acessar {
        display: inline-block;
        padding: 8px 15px;
        background-color: #4A3F35;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
        text-align: center;
    }
    
    .btn-acessar:hover {
        background-color: #6d553e;
    }
    
    /* Estilo do quadro "Em breve" */
    .coming-soon-card {
        width: 100%;
        max-width: 300px;
        background-color: #f9f9f9;
        padding: 20px;
        border: 2px solid #ccc;
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .coming-soon-card h3 {
        font-size: 1.5rem;
        color: #333;
        margin-bottom: 15px;
    }
    
    .coming-soon-card p {
        font-size: 1rem;
        color: #666;
    }
    
    /* Estilos para a animação da imagem */
    .profile-image {
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }
    
    .animated-img {
        width: 150px; /* Tamanho ajustado conforme necessário */
        height: auto;
        border-radius: 8px;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 1s forwards;
    }
    
    @keyframes fadeInUp {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    
    /* Tabelas */
    table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
        font-size: 0.95rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    th, td {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid #eaeaea;
    }
    
    th {
        background-color: #4A3F35;
        color: white;
        font-weight: 600;
    }
    
    tr:nth-child(even) {
        background-color: #f8f9fa;
    }
    
    /* Seção de satélites */
    .orbit-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin: 2rem 0;
    }
    
    .orbit-type {
        background: white;
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .orbit-type:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    
    .satellite-image {
        width: 100%;
        border-radius: 8px;
        margin: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .satellite-image:hover {
        transform: scale(1.02);
    }
    
    /* Rodapé do artigo */
    .post-footer {
        padding: 2rem;
        border-top: 1px solid #eaeaea;
        background-color: #f8f9fa;
        text-align: center;
    }
    
    .post-navigation {
        display: flex;
        justify-content: space-between;
        margin-bottom: 1.5rem;
    }
    
    .post-navigation a {
        display: inline-flex;
        align-items: center;
        padding: 0.75rem 1.25rem;
        background-color: white;
        color: #2c3e50;
        text-decoration: none;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        font-weight: 600;
    }
    
    .post-navigation a:hover {
        background-color: #2c3e50;
        color: white;
        transform: translateY(-2px);
    }
    
    /* Responsividade */
    @media (max-width: 768px) {
        .post-header, .post-content {
            padding: 1.5rem;
        }
        
        .orbit-info {
            grid-template-columns: 1fr;
        }
        
        .post-navigation {
            flex-direction: column;
            gap: 1rem;
        }
        
        .post-navigation a {
            width: 100%;
            text-align: center;
        }
    }

    /* Título da seção */
.section-title {
    font-family: 'Cormorant Unicase', serif;
    font-size: 2.5rem;
    color: #4a3f35;
    margin-bottom: 15px;
    text-align: center;
}

/* Descrição da seção */
.section-description {
    font-size: 1.2rem;
    color: #6b4f3a;
    text-align: center;
    margin-bottom: 15px;
}

/* Aviso sutil */
.section-alert {
    font-size: 1rem;
    color: #8c6b54;
    text-align: center;
    background-color: #f9f6f0;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    border-left: 5px solid #8c6b54; /* Destaque visual com borda à esquerda */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Efeito visual ao passar o mouse no aviso */
.section-alert:hover {
    background-color: #f0ebd8;
    color: #6b4f3a;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.5);
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 999;
    cursor: pointer;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 123, 213, 0.7);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Adicione estas regras ao seu CSS existente (não alterei nenhum estilo original) */

/* ==================== */
/* RESPONSIVIDADE GERAL */
/* ==================== */

/* Dispositivos móveis (até 768px) */
@media (max-width: 768px) {
    .blog-post {
        padding: 12px;
    }
    
    .post-header {
        padding: 12px 15px;
    }
    
    .post-title {
        font-size: 1.7rem;
        line-height: 1.25;
        margin-bottom: 10px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 6px;
        font-size: 0.9rem;
    }
    
    .post-featured-image img {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }
    
    .orbit-info {
        flex-direction: column;
        gap: 25px;
        margin: 20px 0;
    }
    
    .orbit-type {
        max-width: 100% !important;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .satellite-image {
        width: 100% !important;
        margin: 10px auto;
    }
    
    .tags {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        margin: 15px 0;
    }
    
    .tag {
        font-size: 0.78rem;
        padding: 4px 10px;
    }
}

/* Tablets (769px a 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .orbit-info {
        gap: 25px;
        flex-wrap: wrap;
    }
    
    .orbit-type {
        flex: 1 1 48% !important;
        min-width: 300px;
        margin-bottom: 25px;
    }
    
    .post-content {
        padding: 0 10px;
    }
}

/* ==================== */
/* ELEMENTOS ESPECÍFICOS */
/* ==================== */

/* Imagens responsivas */
.satellite-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 6px;
}




/* ==================== */
/* MELHORIAS DE LEGIBILIDADE */
/* ==================== */

@media (max-width: 480px) {
    .post-content h1 {
        font-size: 1.6rem;
    }
    
    .post-content h2 {
        font-size: 1.4rem;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
    }
    
    .post-content p, 
    .post-content li {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    blockquote {
        padding: 12px;
        font-size: 0.9rem;
        margin: 15px 0;
    }
    
    figcaption {
        font-size: 0.8rem;
    }
}

/* Correção para elementos com largura fixa */
[style*="width: 560px"], 
[style*="width: 800px"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* ==================== */
/* CORREÇÕES PARA MOBILE */
/* ==================== */

@media (max-width: 768px) {
    /* Corrige a largura do conteúdo principal */
    .post-content {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    /* Ajusta os containers dos telescópios */
    .orbit-info {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .orbit-type {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin: 0 0 25px 0 !important;
    }
    

    
    /* Garante que imagens ocupem a largura disponível */
    .satellite-image {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    /* Ajuste especial para blocos de citação */
    blockquote {
        width: calc(100% - 20px);
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* ==================== */
/* MELHORIAS ADICIONAIS */
/* ==================== */

@media (max-width: 480px) {
    /* Ajuste fino para telas muito pequenas */
    .post-content {
        padding: 0 8px;
    }
    
    /* Melhora a legibilidade do texto */
    .post-content p {
        word-spacing: 0.5px;
        line-height: 1.7;
        text-align: justify;
        hyphens: auto;
    }
    
    /* Ajusta títulos para não quebrar linha cedo demais */
    .post-content h1,
    .post-content h2,
    .post-content h3 {
        word-break: keep-all;
        overflow-wrap: break-word;
    }
}