/* Resources Section */

.resources-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0px;
    background-color: var(--color-grey-background);
}

.resources {
    max-width: 1800px;
}

.resources h2 {
    font-weight: 600;
    font-size: 34px;
    line-height: normal;
    letter-spacing: 0px;
    color: var(--color-green);
    margin: 0;
}

.resources-section-1 {
    display: inline-flex;
    justify-content: center;
    gap: 150px;
    padding: 0 200px;
}

.resources-section-1-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    min-width: 40%;
    max-width: 600px;
    letter-spacing: 0.32px;
    gap: 30px;
}

.resources-section-1-content p {
    color: black;
    line-height: 1.3;
    letter-spacing: 0.4px;
}

.img-resources {
    min-width: 40%;
}

.resources-section-1-content a {
    padding: 20px 20px;
    background-color: var(--color-green);
    border-radius: 30px;
    color: #fdfbfb;
    font-family: "Livvic", Helvetica;
    font-weight: 700;
}

#grid {
    /* display */
    display: grid;
    margin: 40px;
    grid-template-columns: calc(50% - 2.5px) calc(50% - 2.5px);
    gap: 15px 5px;
    height: 500px;
    overflow-y: scroll;
}

#grid img {
    width: 95%;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}


@media screen and (max-width: 1000px) {

    .resources-section-1 {
        flex-direction: column;
        align-items: center;
        padding: 30px;
        gap: 0;
    }

    .resources-section-1-content {
        gap: 20px;
        width: 90%;
    }

    .img-resources {
        width: 90%;
    }

}

/* Loading and Error States */
.loading-message, .error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
    text-align: center;
}

.loading-message p {
    color: var(--color-green);
    font-size: 18px;
    font-weight: 500;
}

.error-message p {
    color: #dc3545;
    font-size: 16px;
    font-weight: 500;
}