/* Override the theme's 3-column .ef-faculty-card default (style.css) for program cards only. */
.ef-program-directory .ef-faculty-card {
    flex: 0 1 calc(50% - 1rem);
}

.ef-program-filters-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ef-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ef-program-filters-bar .ef-filter-field {
    display: flex;
    flex: 1 1 180px;
    flex-direction: column;
}

.ef-program-filters-bar label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ef-program-filters-bar select {
    width: 100%;
}

.ef-filter-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ef-loading-bar {
    position: relative;
    height: 3px;
    margin-bottom: 0.75rem;
    background: transparent;
    overflow: hidden;
    visibility: hidden;
}

.ef-loading-bar.is-active {
    visibility: visible;
}

.ef-loading-bar.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: #2DDB36;
    animation: ef-loading-bar-slide 1s ease-in-out infinite;
}

@keyframes ef-loading-bar-slide {
    0%   { left: -40%; }
    100% { left: 100%; }
}

.ef-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0 0 0.5rem;
}

.ef-card-pill {
    background: #f0f0f0;
    border-radius: 999px;
    padding: 0.15rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.ef-card-school-dept {
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
}

.ef-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ef-quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ef-quick-view-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ef-quick-view-dialog {
    position: relative;
    width: calc(100% - 2rem);
    max-width: 600px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
}

.ef-quick-view-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.ef-quick-view-cta {
    margin-top: 1rem;
}

.ef-quick-view-cta-link {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
