/* Basic styles for Staff Details Elementor Plugin */

/* Staff Grid Widget */
.staff-grid-container {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.staff-grid-container.columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

.staff-grid-container.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.staff-grid-container.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.staff-grid-container.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Search Bar Styling */
.staff-search-form {
    display: flex;
    margin-bottom: 30px; /* Increased margin for better separation */
    gap: 15px; /* Increased gap between elements */
    align-items: center;
    background-color: #f9f9f9; /* Light background for the form */
    padding: 15px 20px; /* Padding around the form */
    border-radius: 8px; /* Slightly more rounded corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Subtle shadow for depth */
}

.staff-search-form .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.staff-search-field {
    flex-grow: 1;
    padding: 12px 18px; /* Increased padding */
    border: 1px solid #c9c9c9; /* Softer border color */
    border-radius: 6px; /* Slightly more rounded corners */
    font-size: 1.05em; /* Slightly larger font */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08); /* More subtle inner shadow */
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.staff-search-field:focus {
    border-color: #007bff; /* A more vibrant blue on focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25); /* Clearer focus ring */
}

.staff-search-submit {
    background-color: #007bff; /* A more vibrant blue for the button */
    color: #fff;
    border: none;
    padding: 12px 25px; /* Increased padding */
    border-radius: 6px; /* Matching border-radius */
    cursor: pointer;
    font-size: 1.05em; /* Slightly larger font */
    font-weight: 600; /* Bolder text */
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,123,255,0.2); /* Subtle button shadow */
}

.staff-search-submit:hover {
    background-color: #0056b3; /* Darker blue on hover */
    box-shadow: 0 4px 8px rgba(0,123,255,0.3); /* More pronounced shadow on hover */
}

/* Responsive adjustments for columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .staff-grid-container.columns-tablet-1 {
        grid-template-columns: repeat(1, 1fr);
    }
    .staff-grid-container.columns-tablet-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .staff-grid-container.columns-tablet-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .staff-grid-container.columns-tablet-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .staff-grid-container.columns-mobile-1 {
        grid-template-columns: repeat(1, 1fr);
    }
    .staff-grid-container.columns-mobile-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .staff-search-form {
        flex-direction: column;
        gap: 10px;
    }

    .staff-search-field,
    .staff-search-submit {
        width: 100%;
    }
}

.staff-grid-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}


.staff-grid-item:hover {
    transform: translateY(-5px);
}

.staff-grid-item a {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.staff-grid-item .staff-photo {
    width: 100%;
    height: 350px; /* Fixed height for consistency */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: block;
}

.staff-grid-item .staff-photo-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.2em;
}

.staff-grid-item-content {
    padding: 15px;
}

.staff-name {
    margin-bottom: 10px !important;
    padding: 20px 20px 0;
}
.staff-designation{
    padding: 0 20px 20px;
}
.staff-grid-item-content .staff-name {
    font-size: 1.3em;
    margin: 10px 0 5px;
    color: #333;
}

.staff-grid-item-content .staff-designation {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

/* AJAX Search Results Styling */
#staff-search-results {
    margin-top: 20px;
    margin-bottom: 30px;
    display: grid;
    gap: 20px;
}

#staff-search-results .staff-member-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
    display: flex; /* Use flexbox for horizontal layout */
    align-items: center;
    padding: 15px;
}

#staff-search-results .staff-member-item:hover {
    transform: translateY(-3px);
}

#staff-search-results .staff-photo {
    flex-shrink: 0; /* Prevent photo from shrinking */
    width: 100px; /* Fixed width for photo */
    height: 100px; /* Fixed height for photo */
    border-radius: 50%; /* Circular photo */
    background-size: cover;
    background-position: center center;
    margin-right: 20px;
    border: 2px solid #f0f0f0;
}

#staff-search-results .staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#staff-search-results .staff-details {
    flex-grow: 1;
}

#staff-search-results .staff-name {
    font-size: 1.4em;
    margin-bottom: 5px !important;
    color: #333;
}

#staff-search-results .staff-designation {
    font-size: 0.95em;
    color: #777;
    margin-bottom: 10px;
}

#staff-search-results .staff-content {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

#staff-search-results .staff-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85em;
    color: #666;
}

#staff-search-results .staff-contact-info li {
    margin-bottom: 5px;
}

#staff-search-results .staff-contact-info li i {
    margin-right: 5px;
    color: #007bff;
}

.staff-search-loading,
.staff-search-error,
.no-staff-found {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    color: #555;
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-top: 20px;
}

.staff-search-error {
    color: #d9534f;
    background-color: #fdf7f7;
    border: 1px solid #f2dede;
}

/* Responsive adjustments for AJAX results */
@media (max-width: 768px) {
    #staff-search-results .staff-member-item {
        flex-direction: column;
        text-align: center;
    }

    #staff-search-results .staff-photo {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Single Staff Page */
.staff-single-page {
    margin: 40px auto; /* Increased margin for better spacing */
    background-color: #ffffff; /* Pure white background */
    padding: 40px; /* Increased padding */
    border-radius: 12px; /* Softer rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* More pronounced, modern shadow */
    border: 1px solid #e0e0e0; /* Subtle border */
}

.staff-single-page .entry-header {
    text-align: start;
    margin-bottom: 40px; /* Increased margin */
}

.staff-single-page .entry-title.staff-name {
    font-size: 2.8em; /* Slightly larger name */
    color: #2c3e50; /* Darker, more professional color */
    margin-bottom: 8px;
    font-weight: 700; /* Bolder font weight */
}

.staff-single-page .staff-designation {
    font-size: 1.3em; /* Slightly larger designation */
    color: #7f8c8d; /* Softer grey color */
    margin-top: 0;
    font-weight: 400;
}

.staff-single-page .staff-details-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.staff-single-page .staff-photo-wrapper {
    flex: 0 0 320px; /* Slightly larger fixed width for photo */
    max-width: 100%;
    text-align: center;
}

.staff-single-page .staff-photo-single {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Rounded corners for the photo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* More defined shadow for photo */
    transition: transform 0.3s ease-in-out; /* Smooth hover effect */
}

.staff-single-page .staff-photo-single:hover {
    transform: scale(1.02); /* Slight zoom on hover */
}

.staff-single-page .staff-photo-placeholder-single {
    width: 100%;
    height: 320px; /* Placeholder height adjusted */
    background-color: #f8f8f8; /* Lighter placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb; /* Lighter placeholder text */
    font-size: 1.6em;
    border-radius: 8px;
    border: 1px dashed #e0e0e0; /* Dashed border for placeholder */
}

.staff-single-page .staff-info {
    flex: 1;
    min-width: 350px; /* Adjusted min-width */
}

.staff-single-page .staff-info p {
    margin-bottom: 12px; /* Adjusted margin */
    line-height: 1.7; /* Improved line height for readability */
    color: #34495e; /* Darker text color */
}

.staff-single-page .staff-info strong {
    color: #2c3e50; /* Stronger color for labels */
    font-weight: 600; /* Bolder labels */
}

.staff-single-page .staff-info a {
    color: #3498db; /* A more vibrant blue for links */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.staff-single-page .staff-info a:hover {
    color: #2980b9; /* Darker blue on hover */
    text-decoration: underline;
}

.staff-single-page .staff-info h2 {
    font-size: 2em; /* Larger section headings */
    color: #2c3e50;
    margin-top: 30px; /* More space above headings */
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1; /* Lighter, subtle border */
    padding-bottom: 8px;
    font-weight: 700;
}

.staff-single-page .staff-biography,
.staff-single-page .staff-education,
.staff-single-page .staff-experience {
    background-color: #fdfdfd; /* Slightly off-white background for sections */
    border-left: 4px solid #3498db; /* Accent border on the left */
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.staff-single-page .staff-biography p,
.staff-single-page .staff-content p,
.staff-single-page .staff-education p,
.staff-single-page .staff-experience p {
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Removed generic grid-template-columns to allow specific mobile column classes to take effect */

    .staff-single-page {
        margin: 30px auto;
        padding: 30px;
    }

    .staff-single-page .staff-details-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .staff-single-page .staff-photo-wrapper {
        flex: none;
        width: 100%;
        max-width: 280px; /* Slightly smaller on tablet */
        margin-bottom: 20px;
    }

    .staff-single-page .staff-photo-placeholder-single {
        height: 280px;
    }

    .staff-single-page .staff-info {
        min-width: unset;
        width: 100%;
    }

    .staff-single-page .entry-title.staff-name {
        font-size: 2.2em;
    }

    .staff-single-page .staff-designation {
        font-size: 1.1em;
    }

    .staff-single-page .staff-info h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .staff-grid-container {
        grid-template-columns: 1fr;
    }

    .staff-single-page {
        padding: 20px;
        margin: 20px auto;
    }

    .staff-single-page .entry-title.staff-name {
        font-size: 1.8em;
    }

    .staff-single-page .staff-designation {
        font-size: 0.9em;
    }

    .staff-single-page .staff-info h2 {
        font-size: 1.4em;
    }

    .staff-single-page .staff-photo-wrapper {
        max-width: 200px; /* Smaller on mobile */
    }

    .staff-single-page .staff-photo-placeholder-single {
        height: 200px;
    }
}
