.new-communities-shell {
  width: min(1040px, calc(100% - 24px));
  margin: 18px auto 40px;
}

.new-communities-card {
  padding: 18px;
}

.new-communities-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.new-communities-header h1 {
  margin: 6px 0 4px;
}

.new-communities-header p {
  margin: 0;
  color: #697386;
}

.new-communities-back {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.new-communities-header > strong {
  white-space: nowrap;
  font-size: 13px;
  color: #697386;
}

.new-communities-list {
  display: grid;
  gap: 8px;
}

.new-community-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid #dfe4ed;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.new-community-row:hover {
  background: #f8f9fd;
}

.new-community-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef1f6;
}

.new-community-info {
  min-width: 0;
}

.new-community-info strong {
  display: block;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-community-info p {
  margin: 0 0 5px;
  color: #5f6776;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.new-community-info span,
.new-community-date {
  color: #7b8392;
  font-size: 12px;
}

.new-community-date {
  white-space: nowrap;
}

.new-communities-pagination {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .new-communities-header {
    flex-direction: column;
  }

  .new-community-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .new-community-image {
    width: 54px;
    height: 54px;
  }

  .new-community-date {
    grid-column: 2;
  }
}


/* =========================================================
   PAGINAÇÃO - NOVAS COMUNIDADES
   Visual mais moderno e destacado, mantendo o estilo Orkutis.
   ========================================================= */

.new-communities-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e3e7ef;
}

.new-communities-pagination .communities-page-button {
  appearance: none;
  min-width: 118px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #cfd6e4;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f4f6fb 100%
  );
  color: #4e5a70;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(50, 61, 84, .08);
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease,
    background .16s ease,
    color .16s ease;
}

.new-communities-pagination .communities-page-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #8b6cc4;
  background: linear-gradient(
    180deg,
    #8a65c8 0%,
    #6f4cad 100%
  );
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(111, 76, 173, .22);
}

.new-communities-pagination .communities-page-button:active:not(:disabled) {
  transform: translateY(0);
}

.new-communities-pagination .communities-page-button:disabled {
  opacity: .42;
  cursor: not-allowed;
  box-shadow: none;
}

.new-communities-pagination .communities-page-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3eefb;
  color: #6f4cad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1px;
}

@media (max-width: 560px) {
  .new-communities-pagination {
    gap: 8px;
    flex-wrap: wrap;
  }

  .new-communities-pagination .communities-page-button {
    min-width: 0;
    flex: 1 1 42%;
    padding: 0 12px;
  }

  .new-communities-pagination .communities-page-info {
    order: -1;
    width: 100%;
  }
}
