.related-categories-container {
    text-align: center;
    margin-top: 20px;
}

.related-categories-container h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.related-categories-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top:15px;
    margin-bottom:15px;
}

.related-category-item {
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 10px 20px;
    margin: 10px;
    transition: background-color 0.3s ease;
}

#footer .related-category-item a {
    text-decoration: none;
    color: black;
    font-size: 1em;
}

.related-category-item:hover {
    background-color: #e0e0e0;
}

#footer li.related-category-item{

	color:black;
	padding: 7px 15px;
}