.real_estate{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0rem 6rem 0rem 0rem;
    width: 100%;
}
@media only screen and (max-width: 768px) {
  .real_estate {
      margin: 8rem 1rem 1rem 1rem; 
      overflow-x: hidden;
  }
}
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
  }

  .real_state-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 3 por linha com ajuste responsivo */
    gap: 20px; /* Espaçamento entre os itens */
    margin: 20px 0; /* Espaço acima e abaixo */
    padding: 0 40px; /* Margem lateral (espaço à esquerda e direita) */
    box-sizing: border-box; /* Garante que o padding não quebre o layout */
}

/* Responsividade para telas pequenas */
@media (max-width: 768px) {
    .real_state-container {
        padding: 0 20px; /* Reduz o padding lateral em telas menores */
        gap: 15px; /* Reduz o espaço entre itens se necessário */
    }
}

@media (max-width: 480px) {
    .real_state-container {
        padding: 0 10px; /* Padding ainda menor em telas muito pequenas */
        gap: 10px; /* Espaçamento menor entre itens */
    }
}


  .news__item {
    height: 480px;
    padding: 0px;
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    text-align: left;
    text-decoration: none;
    overflow: hidden;
    background: #fff;
}

.real_estate-text {
    padding: 30px 20px 0 20px;
    flex-grow: 1; /* Ocupa o espaço disponível entre a imagem e o footer */
}

.real_estate-text h4 {
    padding-bottom: 5px;
}

.real_estate-footer {
    border-top: 1px solid #cccccc;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 400;
    color: #5b6e85;
    height: 40px; /* Definindo altura fixa */
    margin-top: auto; /* Empurra o footer para baixo */
}

.news__title {
    font-size: 20px;
    font-weight: 500;
    color: #071112;
    text-transform: capitalize;
    margin-bottom: 17px;
    display: block;
}

.news__txt {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 15px;
    color: #5E5E5E;
}

.news__img {
    height: 200px;
    width: 100%;
    transition: all 0.3s;
    transform-origin: 0% 0%;
}

.news__img img {
    max-width: 100%;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
