.background-post {
    z-index: -40;
    position: fixed;
    width: 100%;
    opacity: 100%;
    bottom:-100px;
    opacity: 8%;
}


body {
    background-color: var(--lightColor);
    width: 100%;
}

/* .paperFxA::after {
    display: none;
} */

.last-posts {
    width: 100%;
    padding: 50px 20% 50px 20%;
    display: flex;
    gap: 10px;
    place-items: center;
    font-size: 18pt;
    color: var(--darkBlue);
}

.post-list-container {
    width: 100%; 
    height: 100%;
    display: grid;
    grid-auto-rows: auto; /* Ajusta as linhas adicionais */
    padding: 0 20%;
    gap: 30px;
    margin: 10px 0 100px 0;
    justify-content: space-between; /* Distribui espaço entre os itens */
 
}
 
.post-container {
    display: flex;
    width: 350px;
    height: 490px;
    flex-direction: column;
    padding: 0;
    align-content: start;
    -webkit-box-shadow: 0 0px 2px -6px rgba(0,0,0,0.25);
    -moz-box-shadow: 0 0px 2px -6px rgba(0,0,0,0.25);
    box-shadow: 0 0px 2px -6px rgba(0,0,0,0.25);
    background-color: white;
    border-radius: 8px;
    position: relative;
}

.post-container:hover {
    -webkit-box-shadow: 0 9px 2px -6px rgba(0,0,0,0.25);
    -moz-box-shadow: 0 9px 2px -6px rgba(0,0,0,0.25);
    box-shadow: 0 9px 2px -6px rgba(0,0,0,0.25); 
}

.post-container img {
    width: 100%;
    border-radius: 4px 4px 0 0;
    height: 250px;
    object-fit: cover;
}
 
.post-container:first-child {
     grid-row: 1 / 2; /* Ocupe duas linhas */
     grid-column: 1 /  4; /* Ocupe duas colunas */
     height: 400px; 
     width: 100%;
     display: flex;
     flex-direction: row-reverse;
     position: relative;
     -webkit-box-shadow: none;
     -moz-box-shadow: none;
     box-shadow: none;
     padding: 20px 0 20px 0;
     background:none; 
}

.post-container:first-child img {
    width: 80%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.post-container:first-child .post-text {
    width: 300px;
    height: 250px;
    place-content: start;
    position: absolute;
    left: 0;
    top: 18%;
    background-color: white;
    -webkit-box-shadow: 0 9px 2px -6px rgba(0,0,0,0.25);
    -moz-box-shadow: 0 9px 2px -6px rgba(0,0,0,0.25);
    box-shadow: 0 9px 2px -6px rgba(0,0,0,0.25);
}

.post-container:first-child .post-bottom-text {

    width: 300px;
    bottom: 80px;
    left: 0;
    place-content: space-between;
    gap: 60px;
}

.post-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    place-content: start;
    padding: 25px 20px 20px 20px;
    border-radius: 8px;
 
}
 
.post-container a {
     font-size: 14pt;
     font-weight: bold;
     text-decoration: underline;
     color: black;
     text-decoration: none;
     font-family: var(--mainFont); 
     word-break: normal; 
     margin-bottom: 8px;
}
 
.post-container p {
     font-family: var(--mainFont); 
     font-size: 12pt;
}

.post-container span {
    font-size: 10pt;
    font-family: var(--mainFont); 
    font-weight: 600;
    color: grey;
    margin-bottom: 10px;
}

.post-container .post-bottom-text {
    position: absolute;
    bottom: 0;
    padding: 20px 20px 10px 20px;
    width: 100%;
    display: flex;
    place-content: space-between;
    place-items: center;
}

.post-container button {
    font-size: 10pt;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid white;
}

.post-container button:hover {
    border: 1px solid var(--green);
    background-color: white;
}

.post-container .blog-post-text-down {
    font-size: 10pt;
    font-weight: bold;
    color: grey;
}

.post-container:first-child .tags-all-posts {
    position: absolute;
    top: 10%;
    left: 22%;
}


.tags-all-posts {
    position: absolute;
    top: 45%;
    left: 10px;
}

.tags-all-posts span {
    height: 30px;
    margin: 0;
    background-color: var(--green);
    padding: 5px 15px 5px 15px;
    border-radius: 8px;
    color: white;
}


/* Blog Media Query */

/* For hpd notebooks */
@media only screen and (min-width: 1040px) and (max-width: 1440px) { 
    
    .last-posts {
        padding: 50px 15% 50px 15%;
    }
    .post-list-container {
        padding: 0 10%; /* Ajusta o padding para evitar transbordamento */
        width: 100%;
        box-sizing: border-box;
        gap: 30px;
        margin: 10px 0 100px 0;
    }

    .post-container a { 
        font-size: 1rem;
    }

    .post-container span {
        font-size: 8pt;
        font-family: var(--mainFont); 
        font-weight: 600;
        color: white;
    }
    
    .post-container:first-child {
        grid-column: 1 / 4; /* Ajuste conforme necessário */
        width: 100%;
        padding: 20px 0;
    }
 
}

@media only screen and (min-width: 1040px) and (max-width: 1120px) { }

/* For tablets */
@media (max-width: 1039px) {

    .last-posts {
        padding: 50px 10% 50px 10%;
    }
    .post-list-container {
        padding: 0 10%;
    }

    .post-container:first-child {
        grid-column: 1 /  3; 
   }
   
}

/* For tablets  */
@media only screen and (max-width: 1040px) {
    main {
        margin-top: 120px;
    }
}

/* For tablets */
/* @media only screen and (min-width: 481px) and (max-width: 768px) { } */

/* For smartphones */
@media only screen and (max-width: 660px) { 
    main {
        margin-top: -45px;
    }
    .post-container:first-child .tags-all-posts {
        position: absolute;
        top: 55%;
        left: 20px;
    }
    .tags-all-posts {
        left: 20px;
    }
        
    .last-posts h2 {
       font-size: 2.75rem;
    }

    .post-list-container {
        padding: 0 10%;
        place-content: center;
        place-items: center;
    }

    .post-container:first-child {
        grid-column: 1 /  1; 
        display: flex;
        flex-direction: column;
        padding: 0;
        align-content: start;
        height: 640px; 
        background-color: white;
        border-radius: 4px 4px 0 0;
        box-shadow: none;
        width: 350px;
    }

    .post-container:first-child img {
        width: 100%;
        height: 60%;
        border-radius: 4px;
    }

    .post-container:first-child .post-text {
        position: initial;
        display: flex;
        flex: 1;
        flex-direction: column;
        place-content: start;
        padding: 20px;
        width: initial;
        
    }

    .post-container .post-text {
        -webkit-box-shadow: 0 9px 2px -6px rgba(0,0,0,0.25);
        -moz-box-shadow: 0 9px 2px -6px rgba(0,0,0,0.25);
        box-shadow: 0 9px 2px -6px rgba(0,0,0,0.25);
    }

    .post-container:first-child .post-bottom-text {
        width: 350px;
        bottom: 0;
        left: 0;
        place-content: space-between;
        gap: 60px;
    }

    .post-bottom-text p {
        font-size: 9pt;
    }
    
}
/* For mini smartphones */
@media only screen and (max-height: 700px) { }

/* For high-resolution (Retina) screens */
/* @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi) { } */