/* ===== FACULTY LISTING SECTION STYLES ===== */
/* File: /css/sections/faculty/faculty-listing-section.css */
/* Purpose: Styles for faculty listing section including grid, pagination, and filters */
/* Last Updated: [CURRENT_DATE] */

/* ===== FACULTY LISTING HEADER - UPDATED LAYOUT ===== */
.faculty-listing-header {
    margin-bottom: 2.5rem;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    flex: 1;
    min-width: 300px;
}

.header-right {
    min-width: 250px;
}

.faculty-listing-title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 2.2rem;
    color: var(--nsb-text-primary);
    margin-bottom: 0.5rem;
}

.faculty-listing-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--nsb-text-secondary);
    margin: 0;
}

/* ===== SEARCH STYLES ===== */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--nsb-primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.search-btn {
    padding: 10px 18px;
    background: var(--nsb-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: var(--nsb-dark);
}

/* ===== FILTER BUTTONS ===== */
.faculty-filters {
    margin-top: 1.5rem;
}

.category-filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    color: var(--nsb-text-primary);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.filter-btn.active {
    background: var(--nsb-primary);
    color: white;
    border-color: var(--nsb-primary);
}

.filter-btn.active:hover {
    background: var(--nsb-dark);
    border-color: var(--nsb-dark);
}

/* ===== SECTION UNDERLINE ===== */
.section-title-underline {
    width: 100%;
    height: 1px;
    background: #eaeaea;
    margin-top: 2rem;
}

/* ===== FACULTY STATISTICS ===== */
.faculty-statistics {
    background: var(--nsb-light);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2.5rem;
}

.statistics-title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    color: var(--nsb-text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    display: block;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 2rem;
    color: var(--nsb-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--nsb-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FACULTY GRID CONTAINER ===== */
.faculty-grid-container {
    margin-bottom: 3rem;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ===== NO RESULTS STYLES ===== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--nsb-light);
    border-radius: 10px;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--nsb-text-secondary);
    margin-bottom: 1rem;
    display: block;
}

.no-results-title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.8rem;
    color: var(--nsb-text-primary);
    margin-bottom: 1rem;
}

.no-results-text {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--nsb-text-secondary);
    margin-bottom: 1.5rem;
}

.btn-reset {
    display: inline-block;
    padding: 10px 24px;
    background: var(--nsb-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-medium);
    transition: background-color 0.3s ease;
}

.btn-reset:hover {
    background: var(--nsb-dark);
    color: white;
    text-decoration: none;
}

/* ===== FACULTY PAGINATION ===== */
.faculty-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    color: var(--nsb-text-primary);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--nsb-light);
    border-color: #ced4da;
    color: var(--nsb-primary);
    text-decoration: none;
}

.pagination-btn.active {
    background: var(--nsb-primary);
    color: white;
    border-color: var(--nsb-primary);
}

.pagination-btn.active:hover {
    background: var(--nsb-dark);
    border-color: var(--nsb-dark);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination-btn.prev,
.pagination-btn.next {
    min-width: 40px;
}

.pagination-dots {
    padding: 0 8px;
    color: var(--nsb-text-secondary);
}

/* ===== FACULTY TYPE TOGGLE NOTE ===== */
.faculty-type-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--nsb-light);
    border-radius: 8px;
}

.faculty-type-note p {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--nsb-text-primary);
}

.toggle-link {
    color: var(--nsb-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-link:hover {
    color: var(--nsb-dark);
    text-decoration: underline;
}

/* ===== RESULTS COUNT ===== */
.results-count {
    margin-top: 1rem;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--nsb-text-secondary);
    text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Header responsive */
    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-left, .header-right {
        width: 100%;
        min-width: auto;
    }
    
    .search-form {
        width: 100%;
    }
    
    .faculty-listing-title {
        font-size: 1.8rem;
    }
    
    .faculty-listing-subtitle {
        font-size: 1rem;
    }
    
    .category-filter-form {
        justify-content: center;
    }
    
    /* Statistics responsive */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* Grid responsive */
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Pagination responsive */
    .faculty-pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .faculty-statistics {
        padding: 1.5rem;
    }
    
    .statistics-title {
        font-size: 1.3rem;
    }
    
    .faculty-listing-title {
        font-size: 1.6rem;
    }
    
    .faculty-type-note {
        padding: 1rem;
    }
    
    .faculty-type-note p {
        font-size: 0.9rem;
    }
}