/* ==========================================================================
   topics.css — "Browse by Topics" section
   Self-contained, includes its own responsive rules.
   ========================================================================== */

.tp-topics__head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.tp-topics__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-green);
}

.tp-topics__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--tp-text);
}

/* ---- Topic card ---- */
.tp-topic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  padding: 1.5rem 0.75rem;
  text-align: center;
  background: linear-gradient(180deg, #f8fbf9 0%, #f1f7f3 100%);
  border-radius: 1rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.tp-topic:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(9, 119, 54, 0.12);
}

.tp-topic__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e3f1e8;
  transition: background 0.18s ease;
}

.tp-topic:hover .tp-topic__icon {
  background: #d2e9da;
}

.tp-topic__icon img {
  width: 32px;
  height: 32px;
}

.tp-topic__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tp-text);
  line-height: 1.3;
}

/* ==========================================================================
   Responsive — topics
   ========================================================================== */
@media (max-width: 575.98px) {
  .tp-topic {
    padding: 1.2rem 0.5rem;
  }

  .tp-topic__icon {
    width: 60px;
    height: 60px;
  }

  .tp-topic__icon img {
    width: 28px;
    height: 28px;
  }

  .tp-topic__label {
    font-size: 0.85rem;
  }
}
