.download-section h1 {
    font-size: 6rem;
    color: #fff;
    font-weight: 900;
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80vh;
    min-height: 600px;
    height: fit-content;
}

.card {
    background-color: #ff4444;
    border-radius: 20px;
    position: relative;
    height: 30rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card h2 {
    font-size: 3rem;
    color: #000;
    position: absolute;
    bottom: 0px;
    padding: 1rem;
    width: calc(100% - 2rem);
    background-color: white;
    text-align: center;
    font-weight: 900;
}

.card-1 {
    background-image: url('/resources/provisorisch3.png');
}

.card-2 {
    background-image: url('/resources/test-011.jpg');
}

.card-3 {
    background-image: url('/resources/test-005.jpg');
}

.card-4 {
    grid-column: span 2;
    background-image: url('/resources/test-093.jpg');
}

.card-5 {
    background-image: url('/resources/test-001.jpg');
}

/* Large tablet breakpoint */
@media (max-width: 1200px) {
    .download-section h1 {
        font-size: 5rem;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .grid-container {
        max-width: 1000px;
        gap: 18px;
    }

    .card h2 {
        font-size: 2.5rem;
    }
}

/* Tablet breakpoint */
@media (max-width: 1000px) {
    .download-section h1 {
        font-size: 4rem;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 16px;
        height: 90vh;
        min-height: 600px;
    }

    .card {
        height: 25rem;
    }

    .card h2 {
        font-size: 2.2rem;
    }

    .card-4 {
        grid-column: span 1;
    }

    .card-5 {
        grid-column: span 2;
    }
}

/* Mobile landscape breakpoint */
@media (max-width: 768px) {
    .download-section h1 {
        font-size: 3rem;
        padding-top: 8rem;
        padding-bottom: 2rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 300px);
        gap: 15px;
        height: auto;
        padding: 0 1.5rem;
    }

    .card {
        height: 300px;
    }

    .card h2 {
        font-size: 2rem;
        padding: 0.8rem;
        width: calc(100% - 1.6rem);
    }

    .card-4 {
        grid-column: span 1;
    }

    .card-5 {
        grid-column: span 1;
    }
}

/* Mobile portrait breakpoint */
@media (max-width: 480px) {
    .download-section h1 {
        font-size: 2.5rem;
        padding-top: 8rem;
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .grid-container {
        grid-template-rows: repeat(5, 250px);
        gap: 12px;
        padding: 0 1rem;
    }

    .card {
        height: 250px;
        border-radius: 15px;
    }

    .card h2 {
        font-size: 1.8rem;
        padding: 0.6rem;
        width: calc(100% - 1.2rem);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .download-section h1 {
        font-size: 2rem;
        padding-top: 8rem;
        padding-bottom: 1.5rem;
    }

    .grid-container {
        grid-template-rows: repeat(5, 220px);
        gap: 10px;
        padding: 0 0.5rem;
    }

    .card {
        height: 220px;
        border-radius: 12px;
    }

    .card h2 {
        font-size: 1.5rem;
        padding: 0.5rem;
        width: calc(100% - 1rem);
    }
}