body {
    margin: 0;
    flex-direction: column;
    font-family: 'General Sans', Arial, sans-serif;
}

.research {
    padding: 90px 150px 150px 150px; /* top clears nav; sides/bottom keep alignment */
}

.research h2 {
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 200px 0px 80px 0px; /* Padding inside the box */
    margin-top: -100px;
    margin-bottom: 60px;
    width: 100vw; /* Full viewport width */
    box-sizing: border-box;
    position: relative;
    left: 50%; 
    transform: translateX(-50%); /* Aligns the background to viewport */
    font-size: 26px;
    font-weight: 500;
    text-indent: 150px;
}

.research h2::after {
    content: ""; /* No text, just a line */
    display: block;
    width: calc(100% - 300px); /* 150px inset from left and right */
    height: 0.5px;
    background-color: #fff;
    margin: 5px 0 0 150px; /* same left offset as h2 text-indent */
}

.project {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.8s ease-out forwards;
}

.project:nth-child(n + 2) {
    animation-delay: calc(0.2s + ((var(--n, 1) - 1) * 0.2s));
    --n: calc(var(--n, 1) + 1);
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.project h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
   
}

.project p {
    margin: 4px 0; /* Space between paragraphs */
    font-size: 14px;
    color: #676767;
}

.project a {
    color: rgba(0, 57, 114, 1);
    text-decoration: none;
}

.awards h2{
    margin-top: 30px;
}

@media (max-width: 768px) {
    .research {
        padding: 100px 40px 40px 40px; /* padding for mobile, body text */
    }

    .research h2 {
        font-size: 20px;
        text-indent: 40px; /* match section padding-left so h2 lines up with h3 */
        padding: 200px 0px 80px 0px;
        margin-top: -100px;
        margin-bottom: 60px;
    }

    .research h2::after {
        margin-left: 40px;
        width: calc(100% - 80px); /* 40px inset from left and right */
    }

    .project h3 {
        font-size: 16px;
    }

    .project p {
        font-size: 13px;
    }
}

