* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0d0f1a;
  color: #fff;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 1200px; 
}

.title {
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 3px solid #fff;
  padding-bottom: 5px;
}


.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* sempre 4 no desktop */
  gap: 20px;
}


.card {
  background: #111;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 300px; /* aumenta altura */
}

.bar {
  transition: width 0.5s ease;
}


.card img {
  width: 100%;
  aspect-ratio: 4 / 3; /* mantém proporção bonita */
  object-fit: cover;
  border-radius: 10px;
}

/* TEXTO */
.card p {
  font-size: 15px;
  margin-bottom: 5px;
}

.percent {
  font-size: 13px;
  color: #aaa;
}

/* PROGRESS BAR */
.progress {
  background: #333;
  height: 6px;
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}

.bar {
  width: 50%;
  height: 100%;
  background: #a855f7;
}


.btn {
  display: block;        /* ocupa 100% */
  width: 100%;
  background: #22c55e;
  padding: 10px;
  font-size: 13px;
  color: #000;
  border-radius: 20px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s;
}

.btn:hover {
  background: #16a34a;
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: red;
  color: #fff;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 5px;
}

/*  AJUSTES MOBILE */

@media (max-width: 500px) {
 @media (max-width: 500px) {
  .card img {
    width: 100%;
    aspect-ratio: 4 / 3; /* mantém proporção bonita */
    min-height: 150px;   
    object-fit: cover;
  }
}
}

/* ajuste cards mobile */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
  }
}