.upper-footer {
    background-color: #f6f6f4;
    padding: 60px 20px;
    font-family: 'Mulish', 'Microsoft JhengHei', sans-serif;
}

.upper-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.contact-section h2 {
    font-size: 24px;
    color: #000;
    margin: 0 0 20px 0;
}

.main-office {
    text-align: right;
}

.makerspace {
    text-align: center;
}

.contact-info {
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.social-section {
    text-align: center;
    margin-bottom: 40px;
}

.social-section h2 {
    font-size: 24px;
    color: #000;
    margin: 0 0 20px 0;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #888;
    text-decoration: none;
}

.map-icon {
    width: 20px;
    height: 20px;
}

.footer {
    background-color: #002952;
    color: #e8e6e3;
    padding: 40px 20px;
    font-family: 'Mulish', 'Microsoft JhengHei', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.content-locator {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-col {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hkust-logo img {
    height: 40px;
}

.site-pages {
    display: flex;
    gap: 20px;
}

.page {
    color: #e8e6e3;
    text-decoration: none;
}

.social-share-col {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-wrapper {
    display: flex;
    gap: 15px;
}

.icon-wrapper img {
    height: 24px;
    width: 24px;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .upper-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .main-office {
        text-align: center;
    }

    .content-locator {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .site-col {
        flex-direction: column;
    }

    .social-share-col {
        flex-direction: column;
    }

    .site-pages {
        justify-content: center;
    }
}