@charset "UTF-8";
/* GRID (unchanged except your 3 columns) */
.subcategory-button-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 0 1rem; }

/* WRAPPER: keep centering and let it fill available space */
.subcategory-button {
  text-align: center;
  height: 100%;
  /* NEW: not strictly required, but safe */ }

/* BUTTON: make all the same height and center text */
.subcategory-link-button {
  /* CHANGED from block -> flex */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Uniform height for every button */
  height: 140px;
  /* adjust to taste (120–180px) */
  box-sizing: border-box;
  /* padding included in the 140px */
  padding: 1rem 1.5rem;
  background-color: #355464;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: bold;
  transition: background-color 0.3s ease;
  /* Optional: help long single words wrap instead of overflowing */
  word-break: break-word;
  hyphens: auto; }

.subcategory-link-button:hover {
  background-color: #005bb5; }

/* Breakpoints (unchanged grid), plus optional smaller height on phones */
@media (max-width: 1024px) {
  .subcategory-button-grid {
    grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 768px) {
  .subcategory-button-grid {
    grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 480px) {
  .subcategory-button-grid {
    grid-template-columns: 1fr; }
  /* OPTIONAL: slightly shorter buttons on small screens */
  .subcategory-link-button {
    height: 120px; } }
