/* Area Links / Activities page */

.bento-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.bento-card {
    background-color: #F9F6F0;
    border: 1px solid #e3e2e0;
    border-radius: 0.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    min-width: 0;
}

/* Same width as a 3-across row; incomplete rows stay centered */
@media (min-width: 768px) {
    .bento-card {
        width: calc((100% - 4rem) / 3);
        max-width: calc((100% - 4rem) / 3);
        flex: 0 0 calc((100% - 4rem) / 3);
    }
}

.bento-card:hover {
    box-shadow: 0 20px 40px rgba(27, 48, 34, 0.05);
    transform: translateY(-4px);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #8C5E34;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.bento-card:hover::before {
    transform: scaleX(1);
}

.bento-card-logo {
    width: 12rem;
    height: 8rem;
    /* border-radius: 9999px; */
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 4px solid #fbf9f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.bento-card-logo.logo-cover img {
    object-fit: cover;
    padding: 0;
}
