/* ------- ALL POSTS  ------- */
.card {
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-flow: column;
    /* gap: 4px; */
    max-width: 1000px;
}

.card h3 {
    margin: 0px;
    padding: 0px;
    font-family: "Montserrat";
    font-size: 1.1em;
}

.card p {
    margin: 0px;
    padding: 0px;
    font-family: "roboto";
    font-size: 0.9em;
    max-width: 65ch;
    color: #888888;
}

.page-card h3 {
    margin: 0px;
    padding: 0px;
    font-family: "Montserrat";
    font-size: 1.1em;
}

.page-card p {
    margin: 0px;
    padding: 0px;
    font-family: "roboto";
    font-size: 0.9em;
    color: #888888;
}




/* ------------------------ SINGLE POST  ------------------------ */
.single-post {
    margin: 0px auto;
}

/* ------- IMAGEM DESTACADA  ------- */
.post-hero {
    margin: 12px auto;
    max-width: 1212px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    z-index: 0;
}

.post-hero img {
    margin: 0px auto;
    /* aspect-ratio: 2/1; */
    width: 100%;
    height: auto;

    object-fit: cover;
}

/* ------- CONTEÚDO  ------- */
.post-content {
    margin: 12px auto;
    padding: 0px;
    display: flex;
    align-items: center;
    flex-flow: column;
    gap: 12px;
    max-width: 1000px;
}

.post-title {
    margin: 0px auto;
    padding: 24px 0px;
    font-family: "Montserrat";
    font-size: 3em;
    line-height: 1.2;
}

.post-subtitle {
    margin: 0px auto;
    padding: 0px;
    font-family: "Montserrat";
    font-size: 1.5em;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
    color: #666666;
    font-size: 0.9rem;
}

.post-text h1 {
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-align: justify;
}

.post-text h2 {
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-align: justify;
}

.post-text p {
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-align: justify;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 20px;
}

.post-content img {
    margin-top: 12px;
    margin-bottom: 0px;
    max-width: 100%;
}


/* ------------------ RELATED POSTS  ------------------- */
.related-posts {
    margin: 0px auto;
    padding-top: 24px;
    border-top: 1px solid #888888;
}

.related-posts h2 {
    font-family: "Montserrat";
    font-size: 0.9em;
    margin-bottom: 12px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translate(5px, -5px);
}

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

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1rem;
    font-family: "Montserrat";
}


/* --------------------- MEDIA QUERIES ---------------------- */

@media(max-width:1220px) {
    .card h3 {
        font-size: 1em;
    }
}

@media(max-width:1000px) {
    .card h3 {
        font-size: 1em;
    }

    .card p {
        font-size: 0.8em;
    }
}

@media (max-width: 870px) {
    .card {
        width: 100%;
    }

    .card h3 {
        margin: 0px;
    }

}


@media (max-width: 870px) {
    .post-hero {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .featured-image-container {
        height: 300px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-subtitle {
        font-size: 1.2rem;
    }

    .post-text p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }


    .related-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 660px) {
    .post-hero {
        height: 200px;
    }

    .post-title {
        padding: 12px 0px;
        font-size: 1.5em;
        line-height: 1;
    }

}