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

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

.contact-section h2 {
    font-family: 'Stolzl', 'Mulish', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 1.6vw, 24px);
    color: #000;
    margin: 0 0 20px 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
}

.contact-section h2 br {
    display: none;
}

.makerspace {
    text-align: right;
}

.contact-info {
    font-family: 'Stolzl', 'Mulish', sans-serif;
    font-weight: 400;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.contact-info p {
    font-family: 'Stolzl', 'Mulish', sans-serif;
    font-weight: 400;
}

.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;
    font-family: 'Stolzl', 'Mulish', sans-serif;
    font-weight: 400;
}

.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;
}

.site-col img,
.hkust-logo img {
    height: 40px;
    width: auto;
}

.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;
    }

    .contact-section h2 {
        white-space: normal;
        font-size: 20px;
    }

    .contact-section h2 br {
        display: block;
    }

    .makerspace {
        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;
    }
}