:root {
  --bg-dark: #000000;
  --bg-card: #111;
  --bg-icon: #2f2e2e;
  --text-light: #f4f5f8;
  --accent: #fd4f00;
  --accent-hover: #d8681d;
  --card-hover: #181818;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

.container {
  padding: 0 2rem 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.back-button {
  padding: 1.5rem 0 0 0;
}

.go-back {
  display: inline-flex;
  align-items: center;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background-color: #222;
}

.go-back i {
  margin-right: 0.5rem;
}

.go-back:hover {
  color: var(--accent);
  background-color: #333;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.header h1 {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.8;
}

.search-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.search-input {
  flex-grow: 1;
  max-width: 500px;
  position: relative;
}

.search-input input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border-radius: 8px;
  border: none;
  background-color: #222;
  color: var(--text-light);
  font-size: 1rem;
}

.search-input i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.sector-select {
  position: relative;
  min-width: 200px;
}

.sector-select select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  background-color: #222;
  color: var(--text-light);
  font-size: 1rem;
  appearance: none;
}

.sector-select i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}

.card-icon-container {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-hover);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-icon {
  width: 80px;
  height: 80px;
  background-color: var(--bg-icon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-icon i {
  font-size: 36px;
  color: var(--text-light);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.card-description {
  color: var(--text-light);
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
  min-height: 4.5rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.tag {
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.investment {
  color: #59b473;
  font-weight: 600;
}

.saiba-mais {
  display: inline-block;
  color: var(--text-light);
  font-weight: 500;
  text-decoration: none;
  margin-top: 1rem;
  transition: color 0.2s ease;
}

.saiba-mais:hover {
  color: var(--accent);
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  gap: 0.5rem;
}

.pagination-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #222;
  color: var(--text-light);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.pagination-button.active {
  background-color: var(--accent);
}

.pagination-button:hover:not(.active) {
  background-color: #333;
}

.footer {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid #222;
  color: var(--text-light);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .search-filters {
    flex-direction: column;
    align-items: center;
  }

  .search-input,
  .sector-select {
    width: 100%;
    max-width: none;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem 4rem 1rem;
  }
}
.card-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
