html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: visible;
}

.resources-section {
    background: url("../../assets/cream-background.jpg") no-repeat center center fixed;
    background-size: cover;
    max-width: 100vw;
    padding: 40px 40px;
    height: auto;
    min-height: calc(100dvh - 81px);
}

h1 {
    font-family: "TS Block Bold", serif;
    font-size: 40px;
    text-align: center;
    margin-bottom: 48px;
    color: #2F5249;
    text-shadow: 0 0 2px #2F5249;
}

.boxes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: stretch;
}

.resource-box {
    border: 4px solid #2F5249;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.resource-logo img {
    height: 120px;
    width: 120px;
    border: 3px solid #2F5249;
    border-radius: 8px;
}

.resource-content {
    font-family: "Rubik", serif;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.resource-content a {
    color: #0a6636;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}

.resource-content h3 {
    font-size: 20px;
}

.resource-content p {
    font-size: 16px;
    line-height: 24px;
    flex-grow: 1;
}

@media (hover: hover) {
    .resource-content a:hover {
        text-decoration: underline;
    }
}

/* Smaller screens */
@media (max-width: 768px) {
    html, body {
        min-height: 100%;
        overflow-y: visible;
    }

    h1 {
        font-size: 28px;
        padding-top: 16px;
        text-shadow: 0 0 1px #2F5249;
    }

    .resources-section {
        min-height: calc(100dvh - 60px);
    }

    .boxes-container {
        grid-template-columns: 1fr;
    }

    .resource-logo img {
        height: 80px;
        width: 80px;
    }

    .resource-content {
        h3 {
            font-size: 16px;
        }

        p {
            font-size: 14px;
            line-height: 20px;
        }

        a {
            font-size: 14px;
        }
    }
}

/* Small screens/portrait mode */
@media (max-width: 768px) or (orientation: portrait) {
    .resource-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}