footer a {
	color: #D3D3D3;
}

footer nav a {
	display: block;
}

footer a:hover {
	color: #FAE700;
}

@media only screen and (max-width: 888px) {

	footer {
		color: #D3D3D3;
		width: 100%;
	}

	footer a {
		color: #D3D3D3;
	}

	footer>div:first-child>*:nth-child(3) div:first-of-type {
		margin-bottom: 0.75rem;
	}

	footer nav a {
		padding: 0.15rem 0 ; 
		color: #D3D3D3;
	}

	footer a[href="#page"] {
		color: #040707;
	}

	footer>div:first-child {
	  display: grid;
	  grid-template-columns: auto fit-content(2rem) ;
	  grid-template-rows: auto ;
	  grid-template-areas: 
			"c b"
			"a a";
	  grid-gap: 0;
	  grid-row-gap: 2rem;
	  background-color: #181818;
	  padding: 1.5rem 1rem;
	}


	footer>div:first-child>*:nth-child(3) div {
	  font-size: 1rem;
	  font-weight: 300;
	  text-transform: uppercase;	
	}

	footer>div:first-child img {
	  width: 50%;		
	}

	footer>div:first-child ul ul {
	  display: none;	
	}

	footer>div:first-child nav>ul>li:last-of-type {
		margin-top: 1em; 
		text-transform: uppercase;
	  	color: #FAE700;
		font-size: 1rem;
		font-weight: 300;
	}

	footer>div:first-child nav>ul>li:last-of-type>a {
	  	color: #FAE700;
	}

	footer>div:first-child nav ul>li:last-of-type ul {
	  display: block;
	  color: #D3D3D3;
	  text-transform: none;
	}

	footer>div:first-child>*:nth-child(1) {
		grid-area: a; 
	}

	footer>div:first-child>*:nth-child(2) {
		grid-area: 	b;
	}

	footer>div:first-child>*:nth-child(3) {
		grid-area: c;
	}

	footer>div:first-child>*:nth-child(3) div {
	  color: #FAE700;
	}

	footer>div:first-child div {
		font-size: 1rem;
		font-weight: 300;	
	}

	footer>div:first-child>div>p {
	  font-size: 0.9rem;
	  font-weight: 300;
	  line-height: 1.2rem;
	}

	footer>div:last-child {
		padding: 0 1rem 1rem 1rem;
	}

	
	/* */

	footer div.accreditations p {
		text-transform: uppercase ;
		letter-spacing: 0.05rem;
		font-size: 0.75rem;
		color: #FAE700;
		padding: 1rem 0 ;
		font-weight: 300;
	}

	footer div.accreditations ul {
		display: grid;
		width: 100%;
   		grid-template-columns: repeat(3, 1fr);
  		grid-column-gap: 1rem;
  		grid-row-gap:0.5rem;
	}

	footer div.accreditations img {
		 width: auto;
		max-height: 40px;
		height: 2rem;
	}

	footer ul.ntwrk li {
		padding: 0 0 0 1rem ;
		display: inline-block;
	}

	footer ul.ntwrk li img {
		filter: brightness(0) invert(1); /* Terms of use */
	}

	footer>div:last-child {
		text-transform: uppercase;
		display: grid;
		grid-auto-columns: auto auto;
		grid-template-areas: 
			"a"
			"b"
			"d"
			"c"
			"e" ;
	}

	footer>div:last-child>div {
		font-size: 0.7rem;	
	}

	footer>div:last-child>div:nth-child(1) {
		grid-area: a;
	}

	footer>div:last-child>div:nth-child(2) {
		grid-area: b;
	}

	footer>div:last-child>div:nth-child(3) {
		text-align: right;
		grid-area: c;
	}

	footer>div:last-child>div:nth-child(4) {
		grid-area: d;
		text-align: right;
		font-size: 0.8rem;	
	}

	footer>div:last-child>div:nth-child(5) {
		grid-area: e;
	}

	footer>div:last-child>div:nth-child(2)>ul {
		display: flex;
		justify-content: right;
		padding: 0.5rem 0 ;
	}

	footer>div:last-child>div:nth-child(3)>ul>li {
		margin: 0;
		padding: 0 0.5rem;
		border: none;
		display: inline-block;
	}

	footer>div:last-child>div:nth-child(3)>ul>li:last-child {
		border-left: 1px solid #FAE700;
		border-right: none;
		padding-right: 0;
	}

	footer>div:last-child>div:last-of-type {
		font-family: arial, sans-serif;
		text-align: right;
	}

}

@media only screen and (min-width: 889px) {

	/*   FOOTER  */

	footer nav div:first-of-type {
		display: none;
	}

	footer {
		color: #D3D3D3;
		width: 100%;
	}

	footer a[href="#page"] {
		color: #040707;
	}

	footer ul {
		list-style-type: none;
	}

	footer>div:first-child {
		padding: 2rem 2rem 0 2rem ;
	}

	footer>div:first-child > nav h1 {
	  display: none;	
	}

	footer>div:first-child img {
		width: 85%;
		height: auto;
	}

	footer>div:first-child {
	  display: grid;
	  grid-template-columns: 20% 1fr ;
	  grid-template-rows: auto ;
	  grid-template-areas: 
			"a b"
			"a c";
	  grid-gap: 0;
	  background-color: #181818;
	}

	footer>div:first-child>*:nth-child(1) {
	  grid-area: a;
	}

	footer>div:first-child>*:nth-child(2) {
	 	grid-area: b;	
	  	display: flex;
	 	justify-content: flex-end;
	 	align-content: center;
	}

	footer>div:first-child>*:nth-child(3) {
	  grid-area: c;
	  padding-top: 0.15rem;
 	  padding-left: 2rem;
	}


	footer>div:first-child div {
		font-size: 1rem;
		font-weight: 300;	
	}

	footer>div:first-child p {
		font-size: 0.7rem;
		font-weight: 300;
		line-height: 1rem;
	}

/*
	footer>div:first-child>nav>ul {
		width: 100%;
		columns: 3;
	}

*/
 
 	footer>div:first-child>nav>ul {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
		align-content: flex-start;
		gap: 0.5rem;
		padding-top: 0.3rem;
    }

    footer>div:first-child>nav>ul>li {
        flex: 1 1 31%;
        align-self: flex-start;
    }

	footer>div:first-child>nav>ul>li {
		font-size: 0.7rem;
		font-weight: bold;
		line-height: 1rem;
		padding: 1rem 1rem 1rem 0;
		display:inline-block; 
	}

	footer>div:first-child ul>li>ul>li {
		margin-left: 0;
		font-weight: 300;
	}

	footer>div:last-child {
		text-transform: uppercase;
		display: grid;
		grid-template-areas: 
			"a b"
			"d c"
			"e e";
		padding: 0 2rem 2rem 2rem;
	}

	footer div.accreditations p {
		text-transform: uppercase ;
		letter-spacing: 0.05rem;
		font-size: 0.6rem;
		color: #FAE700;
		padding: 0.75rem 0 ;
		font-weight: 300;
	}

	footer div.accreditations ul {
		display: flex;
		gap: 1.5rem;
		flex-direction: row;
		flex-flow: wrap;
		justify-content: left;
		align-items: center;
		color: #D3D3D3;
	}

	footer div.accreditations img {
		max-height: 40px;
		height: 2rem;
		width: auto;
	}

	footer ul.ntwrk li {
		margin: 0.3rem;
		display: inline-block;
	}

	footer ul.ntwrk li img {
		filter: brightness(0) invert(1); /* Terms of use */
	}

	footer>div:last-child>div:nth-child(1) {
		grid-area: a;
	}

	footer>div:last-child>div:nth-child(2) {
		grid-area: b;
	}

	footer>div:last-child>div:nth-child(3) {
		grid-area: c;
	}

	footer>div:last-child>div:nth-child(4) {
		padding-top: 0.30rem;
		font-size: 0.6rem;
		grid-area: d;
	}

	footer>div:last-child>div:nth-child(5) {
		grid-area: e;
	}


	footer>div:last-child>div:nth-child(3) {
		text-align: right;
	}

	footer>div:last-child>div:nth-child(2)>ul {
		display: flex;
		justify-content: right;
		padding: 1rem 0 ;
	}

	footer>div:last-child>div:nth-child(3)>ul>li {
		font-size: 0.5rem;
		margin: 0;
		padding: 0 0.5rem;
		border: none;
		display: inline-block;
	}

	footer>div:last-child>div:nth-child(3)>ul>li:last-child {
		border-left: 1px solid #FAE700;
		border-right: none;
		padding-right: 0;
	}

	footer>div:last-child>div:last-of-type {
		font-family: arial, sans-serif;
		text-align: right;
		font-size: 0.5em;
	}

}
