You have style overriding yours so you can be more specific like this :
a.accordionTitle,
a.accordion__Heading {
background-color: #00008B;
text-align: center;
font-weight: 700;
padding: 2em;
display: block;
text-decoration: none;
color:white;
-webkit-transition: background-color 0.5s ease-in-out;
transition: background-color 0.5s ease-in-out;
border-bottom: 1px solid #8000000;
}
Or use important like this :
.accordionTitle,
.accordion__Heading {
background-color: #00008B;
text-align: center;
font-weight: 700;
padding: 2em;
display: block;
text-decoration: none;
color:white!important;
-webkit-transition: background-color 0.5s ease-in-out;
transition: background-color 0.5s ease-in-out;
border-bottom: 1px solid #8000000;
}
You may read more about Specifity
2
solved Why cannot I format the font color as white