/* General footer styling */
footer {
    background-color: #000;
    color: #fff;
    padding: 40px 80px;
}

footer > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 680px;
    margin: auto;
}

footer > div > div {
    min-width: 200px;
    text-align: center;
    display: inline-flex;
    flex-direction: column;
}

/* Footer headings */
footer > div > div > h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* List styles for sections other than "Other Pages" */
footer > div > div > ul:not(.footer-other-pages-ul) {
    list-style: none;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer > div > div > ul > li:not(.footer-company-info):not(:has(img)) {
    padding: 5px 15px;
    color: #000;
    font-weight: bold;
    background-color: #efe;
    transition: box-shadow 0.2s ease-in-out;
    cursor: pointer;
    border-radius: 5px;
}

footer > div > div > ul > li:hover {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 1);
}

.footer-company-info {
    padding: 5px 15px;
}

/* Image styling */
footer > div > div > ul > li > img {
    width: 100%;
}

/* "Other Pages" section */
.footer-other-pages-ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  	justify-content: center;
    max-width: 680px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}
.footer-other-pages-ul li {
    flex: 1 1 180px;
    max-width: 200px;
    padding: 5px 15px;
    color: #000;
    background-color: #efe;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    transition: box-shadow 0.2s ease-in-out;
    cursor: pointer;
}
.footer-other-pages-ul li:hover {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 1);
}


/*---------- bottom build by MeiJay -------------*/
footer > div:nth-of-type(2) {
    position: relative;
    color: #fff;
	margin: 40px auto 0;
	gap: 0;
}
@media only screen and (max-width: 380px) {
	footer > div:nth-of-type(2) {
		font-size: 0.75rem;
	}
}
footer > div:nth-of-type(2) a {
	font-weight: bold;
	margin-left: 10px;
}
@media only screen and (max-width: 630px) {
	footer > div:nth-of-type(2) a {
		margin: auto;
	}
}
@media only screen and (max-width: 540px) {
	footer > div:nth-of-type(2) a {
		display: block;
	}
}