.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.practice-card {
  border: 1px solid #d6d6d6;
  border-radius: 16px;
  padding: 14px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.practice-card h3 {
  margin: 0;
}

.practice-card p {
  margin: 0;
  color: #444;
}

.practice-thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 16 / 9;
}

.practice-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.practice-cta {
  align-self: flex-start;
  font-weight: 600;
  color: #111;
  background: #ffa001;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

@media (hover: hover) and (pointer: fine) {
  .practice-card:hover,
  .practice-card:focus-visible {
    background-color: #fcfcfc;
    color: inherit;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  }
}

html[data-theme="dark"] .practice-card {
  background-color: #1f1f1f;
  border-color: #2f2f2f;
  color: #f1f1f1;
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="dark"] .practice-card:hover,
  html[data-theme="dark"] .practice-card:focus-visible {
    background-color: #222;
    color: inherit;
    border-color: rgba(255, 255, 255, 0.12);
  }
}

html[data-theme="dark"] .practice-card p {
  color: #c7c7c7;
}

html[data-theme="dark"] .practice-thumb {
  background: #2b2b2b;
}

html[data-theme="dark"] .practice-cta {
  color: #111;
}

@media (max-width: 520px) {
  .practice-grid {
    grid-template-columns: 1fr;
  }
}
