/* Responsive Adjustments */
@media (max-width: 768px) {
    /*.filter-container {
        grid-template-columns: 1fr;
    }*/
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-button, .clear-button {
        width: 100%;
    }
    
    .people-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .people-grid {
        grid-template-columns: 1fr;
    }
}/**
 * Enhanced People Directory Styles
 */

.wp-block-enhanced-people-directory {
    margin: 40px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wp-block-enhanced-people-directory .title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.wp-block-enhanced-people-directory .subtitle {
    font-size: 18px;
    color: #555;
    margin-top: 0;
    line-height: 1.5;
    margin-bottom: 32px;
}

/* Filter Container Styles */
.people-filter {
    margin-bottom: 0px;
}

/*.filter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}*/

.filter-container {
    display: flex;
    flex-flow: row wrap;
    margin-bottom: 24px;
}

/* Filter Item Styles */
.filter-item {
    position: relative;
}


/*Hide and show filter option depending upon its selected on block*/

.people-filter .filter-section {
    display: none;
}

.people-filter .filter-section.filter_active {
    display: block;
}

/* Styles for select dropdowns */
.filter-item select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    color: #333;
    font-family: inherit;
}

.filter-item select:hover {
    border-color: #bdbdbd;
}

.filter-item select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

/* Styles for text input field */
.search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 50px;
    padding: 0 40px 0 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-family: inherit;
}

.search-input::placeholder {
    color: #666;
}

.search-input:hover {
    border-color: #bdbdbd;
}

.search-input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

/* Search button */
.search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: #333;
}

/* Filter Action Buttons */
.filter-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.filter-button {
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
    font-family: inherit;
}

.filter-button:hover {
    background-color: #333;
}

.clear-button {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
    font-family: inherit;
}

.clear-button:hover {
    background-color: #e9e9e9;
}

/* Results styling */
.people-results {
    margin-top: 32px;
}

.loading-spinner {
    text-align: center;
    padding: 30px;
    color: #666;
}

.spinner-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: #0056b3;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-count {
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 18px;
    color: #333;
}

/* People Grid - Style similar to Image 2 */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px;
}

.person-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.person-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    width: 100%;
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-image-placeholder {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-details {
    padding: 16px;
}

.person-details h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.person-details a {
    color: #222;
    text-decoration: none;
}

.person-details a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.person-degrees {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.person-title {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 4px;
}

.person-department {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* Message styling */
.filter-message {
    padding: 15px;
    background-color: #f8f8f8;
    border-left: 4px solid #e0e0e0;
    margin: 20px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.filter-message.error {
    border-left-color: #d32f2f;
    background-color: #fce8e8;
}

.filter-message.info {
    border-left-color: #0277bd;
    background-color: #e1f5fe;
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.load-more-button {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.load-more-button:hover {
    background-color: #e0e0e0;
}

.load-more-note {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}


.wp-block-simple-title-subtitle-block.degrees-posts-grid.posts-grid .filter-button{
    color: #000;
}

.degrees-posts-grid.posts-grid.people-simple-wrap .columns .filter-inner-wrapper{
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	width:100%;
}
.degrees-posts-grid.posts-grid.people-simple-wrap .search-field {
    position: relative;
    display: flex;
    align-items: unset; 
    padding: 10px 0;
    height: fit-content;
}
.degrees-posts-grid.posts-grid.people-simple-wrap .filter-item {
    padding-right: 20px;
    padding-left: 20px;
}
.degrees-posts-grid.posts-grid.people-simple-wrap .filter-item input{
    border-radius:0px;
	border:1px solid #cfd4d9;
	font-size: var(--font-size-16);
	color: #111111;
}
.degrees-posts-grid.posts-grid.people-simple-wrap .filter-item input::placeholder{
	font-size: var(--font-size-16);
	color: #111111;
}
.degrees-posts-grid.posts-grid.people-simple-wrap .filter-item input:hover{
    border:1px solid #111;
}
.degrees-posts-grid.posts-grid.people-simple-wrap .filter-section{
	width:100%;
}
.degrees-posts-grid.posts-grid.people-simple-wrap .search-button {
   right: 25px;
}
.degrees-posts-grid.posts-grid.people-simple-wrap .filter-section-controls {
    margin-left: 0px;
}
.term-level-0 .term-level-1.tagBox > div {
    margin-left: 30px;
}
.filter-button.nav-trigger.filter-status{
	max-height:375px;
	overflow-y:auto;
	overflow-x:none;
}
.people-simple-wrap .subtitle{
	margin-bottom:15px;
}
.degrees-posts-grid.posts-grid .grid-item.person-card .grid-item-content {
        padding: 32px !important;
		border-bottom:unset;
	    gap: var(--space-12) !important;
}

.degrees-posts-grid.posts-grid .grid-item.person-card:hover {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05), 0px 9px 15px rgba(54, 54, 54, 0.05);
}
.degrees-posts-grid.posts-grid .grid-item.person-card {
    border-radius: 0px; 
    box-shadow: unset; 
}
@media (max-width: 1200px) {
.degrees-posts-grid.posts-grid.people-simple-wrap .filter-item {
    padding-right: 12px;
    padding-left: 12px; 
  }
}
@media (max-width: 991px) {
	.degrees-posts-grid.posts-grid.people-simple-wrap .columns .filter-inner-wrapper{
                grid-template-columns: 1fr;

    }
	.degrees-posts-grid.posts-grid.people-simple-wrap .filter-button {
   		margin: 0px !important; 
		padding: 14px 16px 14px 14px;
	}
}


/* Fixes for the dropdown to be absolute */

.degrees-posts-grid.posts-grid.people-simple-wrap .filter-inner-wrapper .filter-section {
    position: relative;
    padding: 0;
    min-height: 70px;
}

.degrees-posts-grid.posts-grid.people-simple-wrap .filter-inner-wrapper .filter-section .select-btn {
    position: absolute;
    padding: 10px 20px;
    z-index: 1;
}

.degrees-posts-grid.posts-grid.people-simple-wrap .filter-inner-wrapper .filter-section .filter-button.expanded {
    z-index: 123;
    overflow-x: hidden;
}
/**== new custom css ===**/
.degrees-posts-grid.posts-grid .people-filter .select-btn {
	z-index: inherit;
}
.degrees-posts-grid.posts-grid .people-filter .filter-section label.container {
	margin: 10px 0;
}
.faculty .blocks--wrapper .filter-default-wrapper.wp-container-core-group-is-layout-2{
	margin-top:unset !important;
}
.faculty .blocks--wrapper > .alignfull.prefooter{
	margin-top:unset !important;
}
.faculty .blocks--wrapper .wp-container-core-group-is-layout-2 > * + * {
    margin-block-start: 40px !important;
}
.posts-grid .nu__grid figure img{
	object-position : top;
}
.people-results{
	margin-top: 0px !important;
}
.nu_people .grid-item-content .primary-title {
    min-height: 65px;
	height:auto !important;
}
.results-container.posts-grid{
	margin-bottom:40px;
}
@media(max-width: 1200px) {
    .degrees-posts-grid.posts-grid.people-simple-wrap .filter-inner-wrapper .filter-section .select-btn {
        position: absolute;
        padding: 10px 12px;
        z-index: 1;
    }
}

@media(max-width: 991px) {
    .degrees-posts-grid.posts-grid.people-simple-wrap .filter-inner-wrapper .filter-section {
        padding: 10px 12px;
    }

    .degrees-posts-grid.posts-grid.people-simple-wrap .filter-inner-wrapper .filter-section .select-btn {
        padding: 0;
        z-index: unset;
        padding-right: 24px;
    }

    .degrees-posts-grid.posts-grid .options {
        font-size: 15px !important;
    }

    .degrees-posts-grid.posts-grid .filter-section-controls {
        padding-left: 12px !important;
    }
}

.degrees-posts-grid.posts-grid .filter-section-controls {
    padding-left: 20px;
}

@media screen and (min-width: 1024px) {
    .degrees-posts-grid.posts-grid .grid-item-content {
        justify-content: unset !important;
    }
}
 
.nu_people .grid-item-content .primary-title {
    min-height: 65px;
	height:auto !important;
}
 
