/* problems.css */

/* 1) Headline */
.problem-selection {
  /* desloca a seção para baixo o tamanho do header + um espaçamento extra */
  padding-top: calc(var(--header-height) + 1rem);
}

.problem-selection h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;   /* aumentei um pouco */
  color: #222;       /* tom mais escuro */
}

/* 2) Cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border: 1px;
  box-shadow: 0 4px 12px rgba(230, 99, 0, 0.3);
  border-color: #e66300;
}

/* 2.1) Ícone + overlay */
.card-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}
.card-icon .base-icon {
  width: 100%;
  height: 100%;
  display: block;
}
.card-icon .overlay-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* não atrapalha clique */
}

/* subtítulo (descrição menor) */
.card-subtitle {
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* 3) Caixa destacada */
.highlight {
  margin-top: 2.5rem;
  background-color: #f28c33; 
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(230, 99, 0, 0.3);
}

/* ============================= */
/* Responsividade para mobile    */
/* ============================= */
@media (max-width: 767px) {
  /* 1) Headline menor e menos margem */
  .problem-selection h2 {
    font-size: 1.5rem;   /* antes 2rem */
    margin-bottom: 1.5rem;
  }

  /* 2) Grid de 1 coluna em mobile */
  .cards-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* 3) Cards mais compactos */
  .card {
    padding: 1.5rem 1rem;  /* antes 2rem 1.5rem */
  }

  /* 4) Ícones menores */
  .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0.75rem;
  }

  /* 5) Subtítulo menor */
  .card-subtitle {
    font-size: 0.8rem;    /* antes 0.9rem */
  }

  /* 6) Highlight mais compacto */
  .highlight {
    font-size: 0.9rem;    /* antes 1rem */
    padding: 0.75rem 1rem;
    margin-top: 2rem;
  }
}
