:root {
  --primary-color: #15803D;
  --primary-hover: #3E643B;
  --muted-color: #666;
  --line-gradient: linear-gradient(to right, var(--primary-color), #EDE7E7);
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.botao-recomendado {
  background-color: #15803D;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  text-align: left;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.botao-recomendado:hover {
  background-color: #3E643B;
  color: #fff;
  transform: scale(1.02);
}

.botao-recomendado:hover .texto {
  color: #fff;
}

.botao-recomendado .texto {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}

.botao-recomendado .icone {
  background-color: #fff;
  color: #15803D;
  border-radius: 50%;
  padding: 4px;
  margin-left: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.botoes-recomendados {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
}

.botoes-centralizados {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.texto-menor {
  display: block;
  margin: 8px auto 20px auto;
  font-size: 12px;
  color: #333;
  text-align: center;
}

/* Card de artigo */
.cards {
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.2) 0 4px 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  margin: 20px 0;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.image-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-img-top {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.card-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.categoria {
  font-size: 12px;
  color: var(--muted-color);
  text-transform: uppercase;
  margin-bottom: 5px;
  opacity: 0.7;
  letter-spacing: 1px;
}

.card-title {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: bold;
}

.shields span {
  background-color: #F0FDF4;
  color: #1B805F;
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 5px;
  font-size: 12px;
  text-transform: uppercase;
}

.shields {
  margin-bottom: 10px;
}

.text-card {
  font-size: 14px;
  color: var(--muted-color);
  line-height: 1.3;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-container {
  max-width: 300px;
  margin: 0 auto;
}

.btn-success {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 7px;
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-success:visited,
.btn-success:focus,
.btn-success:active,
.btn-success:hover {
  color: #fff;
  background-color: var(--primary-hover);
  text-decoration: none;
  transform: scale(1.02);
}

.text {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-color);
  text-align: center;
}

/* Responsivo para cards em telas grandes */
@media (min-width: 900px) {
  .card {
    flex-direction: row;
    align-items: stretch;
  }

  .image-wrapper {
    width: 40%;
    padding: 10px;
  }

  .card-body {
    text-align: left;
  }

  .btn-container {
    margin: 0;
    text-align: left;
  }

  .card-img-top {
    border-radius: 10px;
  }
}

/* Responsivo para mobile */
@media (max-width: 600px) {
  .botao-recomendado {
    padding: 12px 16px;
    font-size: 15px;
    flex-direction: row;
  }

  .botao-recomendado .texto {
    font-size: 15px;
  }

  .botao-recomendado .icone {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
}
