.text-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    width: 100%;
    gap: 16px;
}

.button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
}

/* Features */
.features-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.features {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-bottom: 24px;
}

.features-reverse {
    flex-direction: row-reverse;
}

.feature-caption {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
    width: 24%;
    align-items: flex-start;
    flex: 1;
}

.feature-caption-2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.features figure {
    flex: 1;
}

.column-1 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    max-width: 100%;
    margin-bottom: 25vh;
}

.column-2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    margin-bottom: 25vh;
}

.column-3 {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-caption {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.h1-centered {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
    margin-top: 36vh;
    margin-bottom: 28vh;
}

.subheader-centered {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin-top: 12vh;
    margin-bottom: 12vh;
}

.goals-grid {
    display: grid;
    gap: 32px;
    align-self: stretch;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.goals {
    margin-top: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
}

.conclusion {
    display: flex;
    width: 75%;
    flex-direction: column;
    gap: 100px;
    margin-bottom: 10vh;
}





p { 
    max-width: min(90vw, 850px); 
    margin: 0 auto;
    padding: 0 3rem;
}

.project-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 2em;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.problem-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; 
    gap: 2rem;
    margin-top: 24px;
    width: 100%;
}

.problem-grid img {
    width: 100%;       
    height: auto;      
    object-fit: cover;
    border-radius: 16px; 
}

.text-only {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.text-only-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 10vh;
}

.statistic-grid {
    display: flex;
    flex-direction: row;
    height: 300px;
    gap: 32px;
    margin-top: 12vh;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.statistic-grid img {
    width: 100%;
    max-width: 450px;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    flex: 1 1 0;
    min-width: 0;
}

.main-content {
    border-right: #191717 1px solid;
    padding-right: 24px;
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    align-self: center;
    width: 100%;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    z-index: 1001;
    padding-bottom: 20px;
    margin-bottom: 20px;
    height: fit-content;
}

.sidebar-content {
    display: flex;
    margin-top: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 29px;
    pointer-events: auto;
}

.sidebar-content a {
    text-decoration: none;
    transition: color 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.sidebar-content h4 {
    margin: 0;
}

.sidebar a.active {
    color: #961309;
    font-weight: 700;
    background: none !important;
}

.sidebar a:hover {
    color: #961309;
}

/* Slideshows */
.slideshow-container {
    display: flex;
    max-width: 100vw;
    flex-direction: column;
    position: relative;
    margin: auto;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #191717;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    color: #961309;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin-top: 24px;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #961309;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

/* Links */
.h4-lists a:hover h4 {
    color: #961309;
}

a:hover {
    color: #961309;
}

p a:hover {
    color: #961309 !important;
}

.conclusion article > a.btn {
    width: fit-content;
    display: inline-grid;
}

.w {
    font-weight: 700;
}

.r {
    color: #F03737;
}

b {
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.responsive {
    height: auto;
    width: min(28vw, 100%);
}

/* RESPONSIVE  */

/* Large desktop: 1900px+ */
@media (min-width: 1900px) {
    .sidebar {
        display: block;
    }

    .project {
        padding-left: 16vw;
        padding-right: 16vw;
    }

    .content-section {
        padding-left: 0vw;
        padding-right: 0vw;
    }

    .problem-grid {
        grid-template-columns: 1.5fr 1fr;
    }

    .features:nth-child(even) .image-caption {
        order: 2;
    }

    .features:nth-child(even) figure {
        order: 1;
    }

    .statistic-grid {
        max-height:  100vh;
        margin-right: 50px;
    }
}

/* Small desktop: 1400px - 1899px */
@media (min-width: 1400px) and (max-width: 1899px) {
    .project {
        padding-left: 0vw;
        padding-right: 0vw;
    }

    .column-1 img,
    .column-2 img {
        max-width: 90%;
        margin: 0 auto;
    }

    .content-section {
        padding-left: 0vw;
        padding-right: 0vw;
    }

    .problem-grid img,
    .features img,
    .slideshow-container img {
        max-width: 100%;
    }

    .statistic-grid {
        height: 380px;
        gap: 28px;
        padding: 0 1.5rem;
    }

    .statistic-grid img {
        max-width: 550px;
    }
}

/* Desktop: 769px - 1399px */
@media (min-width: 769px) and (max-width: 1399px) {
    .sidebar {
        display: none;
    }

    .content-section {
        padding-left: 0vw;
        padding-right: 0vw;
    }

    .project {
        padding-left: 8vw;
        padding-right: 8vw;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .statistic-grid {
        height: 280px;
        gap: 24px;
        padding: 0 1.5rem;
    }

    .statistic-grid img {
        max-width: 400px;
    }
}

/* Tablet: 601px - 768px */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project {
        padding-left: 3rem;
        padding-right: 3rem;
        margin-top: 0.875em;
    }

    .project-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .features-wrapper {
        gap: 32px;
        margin-bottom: 48px;
    }

    .features {
        gap: 24px;
    }

    .statistic-grid {
        width: 90%;
        height: auto;
        gap: 24px;
        margin-top: 8vh;
        padding: 0 1rem;
    }

    .statistic-grid img {
        max-width: 350px;
        max-height: 250px;
    }

    .h1-centered {
        margin-top: 20vh;
        margin-bottom: 16vh;
    }

    .column-1,
    .column-2 {
        margin-bottom: 15vh;
    }
}

/* Mobile: 376px - 600px */
@media (max-width: 600px) {
    .sidebar {
        display: none !important;
    }

    .project {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-top: 0.75rem;
    }

    /* Stack all grids */
    .project-info,
    .goals-grid,
    .problem-grid,
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-info {
        flex-direction: column;
        gap: 1.5rem;
        justify-content: flex-start;
    }

    .project-info .info {
        width: 100%;
    }

    .features-wrapper {
        gap: 24px;
        margin-bottom: 40px;
    }

    .features {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }

    .feature-caption {
        width: 100%;
    }

    .feature-caption-2 {
        width: 100%;
    }

    /* Typography adjustments for mobile */
    h1 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
    }

    h2 {
        font-size: clamp(1.125rem, 4vw, 1.25rem);
    }

    h3 {
        font-size: clamp(0.9375rem, 3.5vw, 1rem);
    }

    h4 {
        font-size: clamp(0.8125rem, 3vw, 0.875rem);
    }

    p,
    li {
        font-size: clamp(0.8125rem, 3vw, 0.875rem);
    }

    .footer {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }

    .footer-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .conclusion {
        width: 100%;
        gap: 60px;
    }

    .statistic-grid {
        width: 100%;
        flex-direction: column;
        height: auto;
        gap: 20px;
        margin-top: 6vh;
        padding: 0 1.5rem;
    }

    .statistic-grid img {
        max-width: 100%;
        max-height: 300px;
    }

    .h1-centered {
        margin-top: 15vh;
        margin-bottom: 12vh;
        gap: 8px;
    }

    .column-1,
    .column-2 {
        gap: 20px;
        margin-bottom: 10vh;
    }

    .column-3 {
        gap: 0.75em;
    }

    .text-only-list {
        gap: 20px;
        margin-bottom: 8vh;
    }

    .header-wrapper {
        gap: 12px;
    }

    .image-caption {
        gap: 8px;
    }

    .button-wrapper {
        gap: 12px;
        width: 100%;
    }

    .prev,
    .next {
        padding: 8px;
        font-size: 14px;
    }

    .dot {
        height: 12px;
        width: 12px;
        margin-top: 16px;
    }

    .info {
        gap: 6px;
    }

    .goals {
        gap: 16px;
    }
}

/* Extra small devices: up to 375px */
@media (max-width: 375px) {
    .project {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    p,
    li {
        font-size: 0.8125rem;
    }

    .features {
        gap: 12px;
    }

    .goals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .statistic-grid {
        gap: 16px;
        padding: 0 1rem;
    }
}