.faculty-taxonomy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.faculty-taxonomy-item {
    margin: 0;
    padding: 0;
}

.faculty-taxonomy-link {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #006341;
    text-decoration: none;
    transition: all 0.2s ease;
}

.faculty-taxonomy-link:hover {
    background: #006341;
    color: #fff;
    border-color: #006341;
}

.faculty-taxonomy-count {
    float: right;
    background: #006341;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875em;
}

.faculty-taxonomy-link:hover .faculty-taxonomy-count {
    background: #fff;
    color: #006341;
}

/* Parent/Child Expandable Styles */
.faculty-taxonomy-parent-wrapper {
    display: flex;
    align-items: stretch;
    gap: 3px;
}

.faculty-taxonomy-parent-wrapper .faculty-taxonomy-link {
    flex: 1;
    margin: 0;
}

.faculty-taxonomy-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: auto;
    padding: 0.75rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #006341;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    flex-shrink: 0;
}

.faculty-taxonomy-toggle:hover {
    background: #006341;
    color: #fff;
    border-color: #006341;
}

.faculty-taxonomy-toggle:focus {
    outline: 2px solid #006341;
    outline-offset: 2px;
}

.toggle-icon {
    display: inline-block;
    width: auto;
    text-align: center;
    font-weight: bold;
    margin: 0;
    transition: transform 0.2s ease;
    line-height: 1;
}

.faculty-taxonomy-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.faculty-taxonomy-children {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    border-left: 2px solid #F1E6B2;
    padding-left: 1rem;
}

.faculty-taxonomy-child-item {
    margin: 0.25rem 0;
}

.faculty-taxonomy-child-link {
    display: block;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.faculty-taxonomy-child-link:hover {
    background: #e9ecef;
    color: #006341;
    border-color: #006341;
}

.faculty-taxonomy-child-link .faculty-taxonomy-count {
    background: #6c757d;
    font-size: 0.8em;
}

.faculty-taxonomy-child-link:hover .faculty-taxonomy-count {
    background: #006341;
    color: #fff;
}

/* Animation for expanding/collapsing */
.faculty-taxonomy-children {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faculty-taxonomy-children[style*="display: none"] {
    max-height: 0;
}

.faculty-taxonomy-children[style*="display: block"] {
    max-height: 1000px;
} 