/* Mobile layout fixes for member cards */
@media (max-width: 480px) {
    /* Reset any previous styles that might be interfering */
    .member-card {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0 0 1rem 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
    }
    
    /* Make the image fill the entire top portion */
    .member-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
        object-position: center 25%;
        border-radius: 12px 12px 0 0;
        margin: 0;
        padding: 0;
        display: block;
    }
    
    /* Make the info panel more compact */
    .member-card .info-panel {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.6rem 0.8rem;
        background-color: #a6e7fd;
        margin: 0;
        min-height: 0;
    }
    
    /* Style the text container */
    .member-card .info-text {
        flex: 1;
        padding-right: 0.5rem;
    }
    
    /* Style the name */
    .member-card h3 {
        font-size: 1.1rem;
        margin: 0 0 0.1rem 0;
        padding: 0;
        line-height: 1.2;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Style the role */
    .member-card p {
        font-size: 0.85rem;
        margin: 0;
        padding: 0;
        line-height: 1.2;
        text-align: left;
        color: var(--text-color);
        opacity: 0.8;
    }
    
    /* Style the LinkedIn icon */
    .member-card .linkedin-link {
        position: static;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-left: 0.5rem;
    }
    
    /* Dark mode adjustments */
    [data-theme="dark"] .member-card .info-panel {
        background-color: #2d2d2d;
    }
}