@media screen and (max-width: 1200px) {
    #desktop-nav {
        display: none;
    }
    #hamburger-nav {
        display: flex;
    }
    section {
        margin: 0 5%;
    }
    /* Add padding to the project article so content doesn't touch screen edges */
    #blog-post {
        padding: 4rem 5%;
    }
    .scroll-down-link, .scroll-up-link {
        right: -2rem; /* Keep arrows visible inside the margins */
    }
    #blog-post .scroll-down-link {
        right: 1rem;
    }
}

@media screen and (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .title {
        font-size: 2.5rem;
    }
    /* Individual Project Page Styles */
    .post-content {
        max-width: 700px;
    }
    .post-content h2 {
        font-size: 1.8rem;
    }
    .post-content h3 {
        font-size: 1.5rem;
    }
    .blog-banner {
        height: 300px;
    }
     /* Adjust team grid minimum width slightly on medium screens */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}


@media screen and (max-width: 600px) {
    #contact, footer {
        height: auto;
    }
    .mobile-spacing {
        padding-top: 15vh;
    }
    footer nav {
        height: fit-content;
        margin-bottom: 2rem;
    }
    .contact-info-upper-container {
        flex-wrap: wrap;
    }
    .btn-container {
        flex-wrap: wrap;
    }
    .contact-info-container p, .nav-links li a {
        font-size: 1rem;
    }
    .experience-sub-title {
        font-size: 1.25rem;
    }
    .logo {
        font-size: 1.5rem;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .title {
        font-size: 2rem;
    }
    #contact-form {
        padding: 1.5rem;
    }
    /* Individual Project Page Styles */
    .post-metadata {
        flex-direction: row;
        gap: 0.5rem;
    }
    .blog-banner {
        height: 250px;
    }
    .post-content {
        font-size: 1rem;
    }
    .post-content h2 {
        font-size: 1.6rem;
    }
    .post-content h3 {
        font-size: 1.4rem;
    }
    .banner-title {
        font-size: 1.6rem;
    }
        
    /* Force single column for image gallery on mobile */
    .image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

        /* Force single column for team cards on mobile */
        .team-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        .team-img {
            height: 320px;
        }
        .team-info {
            padding: 1.25rem;
        }

    /* Center mentor details on mobile */
    .report-box-flex {
        flex-direction: column;
        text-align: center;
    }

    .scroll-down-link, .scroll-up-link {
        display: none; /* Strictly hide on small screens */
    }
}