/* Staff Directory Styles */

/* Staff Filter Buttons */
.staff-directory-filters {
    margin: 2rem 0;
}

.staff-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.staff-filter-btn {
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #0073aa;
    border: 2px solid #0073aa;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.staff-filter-btn:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.2);
}

.staff-filter-btn.active {
    background: #0073aa;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.staff-filter-btn:focus-visible {
    outline: 3px solid #005a87;
    outline-offset: 2px;
}

/* Filter Description */
.staff-filter-description {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.staff-filter-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    font-weight: 500;
}

/* Specialty Tags on Staff Cards */
.staff-member-specialties {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e3f2fd;
    color: #0073aa;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Animation Styles */
.staff-member-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.staff-directory {
    margin-top: 2rem;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsive grid layout */
@media (min-width: 768px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.staff-member-card {
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.staff-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: #0073aa;
}

.staff-member-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.staff-member-link:hover {
    text-decoration: none;
    color: inherit;
}

.staff-member-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.staff-member-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-member-card:hover .staff-member-thumbnail img {
    transform: scale(1.05);
}

.staff-member-thumbnail .no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

.staff-member-info {
    padding: 1.5rem;
}

.staff-member-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    line-height: 1.3;
}

.staff-member-title {
    font-size: 0.95rem;
    color: #0073aa;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.staff-member-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
}

/* Single Staff Member Page Styles */
.staff-member-single {
    max-width: 1000px;
    margin: 0 auto;
}

.staff-member-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e5ea;
}

.staff-member-photo {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.staff-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-member-photo .no-thumbnail-large {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #e9ecef;
    color: #6c757d;
    text-align: center;
    padding: 1rem;
}

.staff-member-details {
    flex: 1;
}

.staff-member-details .staff-member-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.staff-member-details .staff-member-title {
    font-size: 1.25rem;
    color: #0073aa;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.staff-member-credentials {
    font-size: 1.1rem;
    color: #6c757d;
    font-style: italic;
}

.staff-member-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.staff-bio h2,
.staff-education h3,
.staff-specializations h3,
.staff-contact h3,
.staff-languages h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #2c3e50;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.5rem;
}

.staff-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}

.staff-member-sidebar > div {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

/* New staff sidebar section headings */
.staff-kids-describe h3,
.staff-therapy-tool h3,
.staff-favorite-part h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #2c3e50;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.5rem;
}

/* Content text styling */
.kids-description,
.therapy-tool-name {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
    font-style: italic;
}

.favorite-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}

.favorite-content p {
    margin: 0 0 1rem 0;
}

.favorite-content p:last-child {
    margin-bottom: 0;
}

/* Side Quote Special Styling */
.staff-side-quote {
    margin-top: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
/*    border-left: 5px solid #0073aa; */
    box-shadow: 0 4px 6px rgba(0, 115, 170, 0.1);
    position: relative;
    overflow: hidden;
}

.staff-side-quote::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.05) 0%, transparent 100%);
    border-radius: 0 12px 0 100%;
}

.side-quote-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.quote-mark-open,
.quote-mark-close {
    font-family: Georgia, serif;
    font-size: 3rem;
    color: #0073aa;
    opacity: 0.3;
    display: block;
    line-height: 1;
    margin: 0;
}

.quote-mark-open {
    margin-bottom: 0.5rem;
}

.quote-mark-close {
    margin-top: 0.5rem;
}

.quote-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #2c3e50;
    font-style: italic;
    font-family: Georgia, serif;
    margin: 1rem 0;
    position: relative;
    padding: 0 1rem;
}

.staff-member-sidebar ul {
    margin: 0;
    padding-left: 1.5rem;
}

.staff-member-sidebar li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.staff-email,
.staff-phone {
    margin-bottom: 0.75rem;
}

.staff-email a,
.staff-phone a {
    color: #0073aa;
    text-decoration: none;
}

.staff-email a:hover,
.staff-phone a:hover {
    text-decoration: underline;
}

/* Staff Navigation */
.staff-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5ea;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-back-to-directory {
    text-align: center;
}

.nav-back-to-directory a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-back-to-directory a:hover {
    background: #005a87;
    text-decoration: none;
    color: #fff;
}

.prev-staff,
.next-staff {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #495057;
    padding: 1rem;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.prev-staff:hover,
.next-staff:hover {
    border-color: #0073aa;
    color: #0073aa;
    text-decoration: none;
}

.prev-staff {
    justify-content: flex-start;
}

.next-staff {
    justify-content: flex-end;
    text-align: right;
}

.nav-title small {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.nav-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0073aa;
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .staff-member-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .staff-member-photo {
        width: 200px;
        height: 200px;
    }

    .staff-member-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-previous,
    .nav-next {
        text-align: center;
    }

    .next-staff {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .staff-member-info {
        padding: 1rem;
    }

    .staff-member-photo {
        width: 150px;
        height: 150px;
    }

    .staff-member-details .staff-member-name {
        font-size: 1.5rem;
    }

    .staff-member-details .staff-member-title {
        font-size: 1.1rem;
    }

    .staff-member-sidebar > div {
        padding: 1rem;
    }

    /* Responsive filter buttons for mobile */
    .staff-filter-buttons {
        gap: 0.5rem;
    }

    .staff-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex: 1 1 calc(50% - 0.4rem);
        min-width: 120px;
    }

    .staff-filter-description {
        padding: 1rem;
    }

    .staff-filter-description p {
        font-size: 1rem;
    }

    /* Responsive quote box for mobile */
    .staff-side-quote {
        padding: 2rem 1.5rem;
    }

    .side-quote-content {
        max-width: 100%;
    }

    .quote-text {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    .quote-mark-open,
    .quote-mark-close {
        font-size: 2.5rem;
    }
}

/* Image Gallery Slider Styles */
.staff-image-gallery {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5ea;
}

.staff-image-gallery h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.5rem;
}

.image-slider-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.image-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.slider-image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* Slider Navigation Buttons */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 115, 170, 0.9);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 90, 135, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev:active,
.slider-next:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev svg,
.slider-next svg {
    width: 20px;
    height: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 115, 170, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: #0073aa;
    border-color: #0073aa;
}

/* Single Image Gallery */
.image-slider-container:has(.slider-slide:only-child) .slider-prev,
.image-slider-container:has(.slider-slide:only-child) .slider-next,
.image-slider-container:has(.slider-slide:only-child) .slider-dots {
    display: none;
}

/* Responsive Slider Styles */
@media (max-width: 768px) {
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        top: calc(50% - 25px);
    }

    .slider-prev {
        left: 0.5rem;
    }

    .slider-next {
        right: 0.5rem;
    }

    .slider-prev svg,
    .slider-next svg {
        width: 16px;
        height: 16px;
    }

    .slider-image {
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .slider-prev,
    .slider-next {
        width: 36px;
        height: 36px;
        top: calc(50% - 18px);
    }

    .slider-prev {
        left: 0.25rem;
    }

    .slider-next {
        right: 0.25rem;
    }

    .slider-prev svg,
    .slider-next svg {
        width: 14px;
        height: 14px;
    }

    .slider-image {
        max-height: 250px;
    }

    .slider-dots {
        bottom: 0.5rem;
        gap: 0.25rem;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }
}
