export function slugify(str: string): string {
  return str
    .normalize("NFKD") // Normalize Unicode (e.g., é → e)
    .replace(/[\u0300-\u036F]/g, "") // Remove diacritics
    .toLowerCase() // Convert to lowercase
    .trim() // Trim leading/trailing spaces
    .replace(/[^a-z0-9]+/g, "-") // Replace non-alphanumeric chars with hyphen
    .replace(/^-+|-+$/g, ""); // Remove leading/trailing hyphens
}
