.fantastic-beasts {
    grid-template-columns: inherit;
    grid-gap: inherit;
    grid-column: 2 / span 10;
    display: grid;
}

.beast-card {
    margin-top: 16px;
    grid-column: 4 / span 6;
    display: flex;
    flex-direction: column;
    row-gap: 32px;
}

.beast-name-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.beast-description {
    display: block;
    color: #2E2E2E;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
}

.beast-card a,
.beast-card a:visited {
    text-decoration: none;
    margin-top: 8px;
    color: #2E2E2E;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    display: none;
}

/* Mobile Responsiveness for Beast Details */
@media (max-width: 768px) {
    .fantastic-beasts {
        grid-column: 1;
        grid-template-columns: 1fr;
        margin-top: 24px;
        padding: 0;
    }

    .beast-card {
        grid-column: 1;
        margin-top: 0;
        row-gap: 24px;
        width: 100%;
    }

    .beast-name-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .fantastic-beasts {
        margin-top: 32px;
        grid-template-columns: 1fr;
    }

    .beast-card {
        row-gap: 20px;
        grid-column: 1;
        width: 100%;
    }

    .beast-name-container {
        gap: 8px;
    }

    h2 {
        font-size: 20px;
    }

    .beast-classification {
        font-size: 11px;
        padding: 4px 10px;
    }

    .beast-description {
        font-size: 14px;
        line-height: 1.6;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: visible;
        text-overflow: unset;
        display: block;
    }
}