/* Container: Flex layout for left-to-right flow */
.aaKeywords-block-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; 
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Base Pill Styling */
.aaKeywords-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;       
    text-decoration: none;     
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s;
    
    /* Important to override theme link colors */
    text-decoration: none !important;
}

/* Hover Effect: Dark Grey/Black */
.aaKeywords-pill:hover {
    background-color: #333 !important; 
    color: #fff !important;
    border-color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    opacity: 0.9;
}