.main-content {
    padding-top: 150px; /* site-wide top-heading standard */
}

.work-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 30px;
    margin-bottom: 80px;
}

.category-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #FFFFFF;
    height: 480px;
    width: 100%;
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    transition: background 0.5s ease;
    z-index: 2;
}

.category-card h2 {
    position: relative;
    z-index: 3;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, letter-spacing 0.5s ease;
    text-align: center;
    max-width: 90%;
    padding: 0 40px;
    line-height: 1.2;
    word-wrap: break-word;
}

.category-card:hover .category-bg {
    transform: scale(1.01);
}

.category-card:hover h2 {
    transform: scale(1.02);
    letter-spacing: 0.17em;
}

.nyc-map-section {
    margin-top: 100px;
    padding: 0 0 100px;
}

.nyc-map-section .section-header {
    text-align: left;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.nyc-map-section h1 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

body:not(.dark-mode) .nyc-map-section h1 {
    font-weight: 600;
}

.nyc-map-section p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

#map {
    height: 600px;
    width: 100%;
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
}

.text-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 991px) {
    .main-content {
        padding-top: 120px;
    }

    .work-categories {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .category-card {
        height: 400px;
    }

    .category-card h2 {
        font-size: 2rem;
        padding: 0 20px;
        max-width: 95%;
    }

    .nyc-map-section {
        margin-top: 60px;
    }

    #map {
        height: 400px;
    }

    .text-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .text-projects-grid {
        grid-template-columns: 1fr;
    }
}
