/* StaffX Pro Public Styles */
.staffx-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Filters */
.staffx-filters {
    /* background: #f8f9fa; */
    /* padding: 20px; */
    /* border-radius: 8px; */
    margin-bottom: 30px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.staffx-filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.staffx-filter-group:last-child {
    margin-bottom: 0;
}

.staffx-filters select,
.staffx-filters input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 200px;
    font-size: 14px;
    background: white;
}

.staffx-filters select:focus,
.staffx-filters input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}

.staffx-search-filter {
    flex: 1;
    min-width: 250px;
}

.staffx-clear-filters {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.staffx-clear-filters:hover {
    background: #c82333;
}

/* Faculty Grid */
.staffx-faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Faculty Cards */
.staffx-faculty-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.staffx-faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.staffx-faculty-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.staffx-faculty-photo.is-circle {
    width: 140px;
    height: 140px;
    margin: 16px auto 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.staffx-faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staffx-faculty-card:hover .staffx-faculty-photo img {
    transform: scale(1.05);
}

.staffx-default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
}

.staffx-faculty-info {
    padding: 20px;
}

.staffx-full-photo.is-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.staffx-full-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.staffx-fields-collapsed {
    margin-bottom: 12px;
}

.staffx-faculty-name {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.staffx-field {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.staffx-field-label {
    font-weight: 600;
    color: #6c757d;
    margin-right: 5px;
}

.staffx-field-value {
    color: #495057;
}

.staffx-field-value a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s;
}

.staffx-field-value a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Pagination */
.staffx-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 10px 0 20px;
    flex-wrap: wrap;
}

.staffx-page-btn {
    background: transparent;
    border: 1px solid var(--staffx-pager-color, #007cba);
    color: var(--staffx-pager-color, #007cba);
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    line-height: 1;
}

.staffx-page-btn.style-rounded {
    border-radius: 20px;
}

.staffx-page-btn.style-square {
    border-radius: 4px;
}

.staffx-page-btn:hover {
    background: var(--staffx-pager-color, #007cba);
    color: #fff;
}

.staffx-page-btn.is-active {
    background: var(--staffx-pager-active, #0d6efd);
    border-color: var(--staffx-pager-active, #0d6efd);
    color: #fff;
}

@media (max-width: 480px) {
    .staffx-page-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 36px;
    }
}

/* No Results */
.staffx-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

/* Departments and Staff Types Lists */
.staffx-departments-list,
.staffx-staff-types-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.staffx-department-item,
.staffx-staff-type-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.staffx-department-item h3,
.staffx-staff-type-item h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.staffx-department-date,
.staffx-staff-type-date {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .staffx-directory {
        padding: 15px;
    }
    
    .staffx-filters {
        padding: 15px;
    }
    
    .staffx-filter-group {
        flex-direction: column;
    }
    
    .staffx-filters select,
    .staffx-filters input {
        min-width: 100%;
    }
    
    .staffx-faculty-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .staffx-departments-list,
    .staffx-staff-types-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .staffx-faculty-info {
        padding: 15px;
    }
    
    .staffx-faculty-name {
        font-size: 1.2em;
    }
}

/* Loading State */
.staffx-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.staffx-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #007cba;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Grid Columns Support */
.staffx-directory[data-grid-columns="2"] .staffx-faculty-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Modal simple enhancements */
.staffx-modal-header {
    border-bottom: 0;
}

.staffx-modal-body .staffx-full-header h3 {
    margin: 0;
}

.staffx-directory[data-grid-columns="3"] .staffx-faculty-grid {
    grid-template-columns: repeat(3, 1fr);
}

.staffx-directory[data-grid-columns="4"] .staffx-faculty-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .staffx-directory[data-grid-columns] .staffx-faculty-grid {
        grid-template-columns: 1fr;
    }
}
/* // read more buttton style  */
.staffx-read-more {
    border-radius: 8px !important;
    padding: 2px 10px!important;
    font-size: 12px !important;
  }
  .staffx-read-more:hover {
    /* background: #0d6efd !important; */
    color: #fff !important;
    /* border-color: #0d6efd !important; */
  }

  .btn-close{
    padding: 0.7rem !important;
    /* background: black !important; */
  }
  .btn-close:hover{
    padding: 0.7rem !important;
    color: white !important;
  }