/* University / units and departments */
.welcome .welcome-image {
    display: none;
}
.welcome .welcome-content {
    display: none;
}
div.welcome {
    padding: 0 !important;
}


.filter-section {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.unit-selector {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.unit-selector:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 45, 88, 0.1);
}

.units-container {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    /* gap: 25px; */
}

.unit-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    /* border-left: 4px solid var(--accent); */
    margin-bottom: 3rem;
}

.unit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.unit-header {
    background: var(--primary);
    color: var(--white);
    padding: 18px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.staff-count {
    background: var(--accent);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.unit-body {
    padding: 0;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
}

.staff-table th {
    background: rgb(213 213 213);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
    border-bottom: 1px solid #e9ecef;
}

.staff-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.staff-table tr:last-child td {
    border-bottom: none;
}

.staff-table tr:hover {
    background-color: #f8fbff;
}

.staff-name {
    font-weight: 600;
    color: var(--dark-text);
}

.staff-position {
    color: var(--light-text);
    font-size: 0.85rem;
}

.staff-phone, .staff-extension {
    color: var(--dark-text);
    font-family: monospace;
}

.staff-office {
    color: var(--light-text);
}

.staff-email a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.staff-email a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--light-text);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dee2e6;
}

.quick-contact {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.contact-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.contact-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}



@media (max-width: 768px) {
    .units-container {
        grid-template-columns: 1fr;
    }
    
    .directory-header h1 {
        font-size: 2rem;
    }
    
    .staff-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .unit-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .staff-table th, 
    .staff-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
}



/* for SharePoint */
.itemstaff a{
    color: var(--primary) !important;
}
.itemstaff a:hover{
    color: var(--accent) !important;
}




/* Arabic Section */
/* Staff Directory */

/* find_by_name */
.staff-table th {
    text-align: right !important;
}

.directory-container .search-input-inner-container .search-icon{
  right: auto !important;
  left: 15px;
}



/* find_by_unit */
@media (min-width: 768px) {
    .text-md-end {
        text-align: left !important;
    }
}
