.resource-terms {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;

    >.term {
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        transition: box-shadow 0.2s ease, transform 0.2s ease;
        display: flex;
        flex-direction: column;
        position: relative;
        border: 1px solid #e2e8f0;
        height: 100%;
    }

    >.term.link {
        text-decoration: none;
    }

    >.term.link>.title {
        text-decoration: none;
        font-size: 1.25rem;
        font-weight: 600;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        color: #1a202c;

        &:hover {
            opacity: 0.9;
        }
    }

    >.term.link>.subtitle {
        text-decoration: none;
        color: #1a202c;
        line-height: 1.4rem;
    }
}

/* Resource Card */
.resources {
    >.grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

}

.resource-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e2e8f0;
    height: 100%;

    >.header {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 1.25rem;
        font-weight: 600;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        color: #1a202c;
    }

    >.footer {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;

        >.tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 0;
        }

        >.tags>.tag {
            background-color: #f1f5f9;
            color: #475569;
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
            font-size: 0.75rem;
            font-weight: 500;
            line-height: 1.2;
        }

        >.file {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.5rem 1rem;
            background-color: #1C223A;
            color: white;
            border-radius: 6px;
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            gap: 0.5rem;
            width: 100%;

            &:hover {
                opacity: 0.9;
            }
        }
    }

}

@media (min-width: 1024px) {
    .resource-terms {
        grid-template-columns: repeat(3, 1fr);
    }

    .resources {
        >.grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
}