/* Employee Showcase Responsive Styles */
.employee-showcase {
    margin: 40px 0;
    position: relative;
}

/* Desktop/Tablet Layout */
.desktop-layout {
    display: flex;
    gap: 40px;
    min-height: 500px;
}

.mobile-layout {
    display: none;
}

/* Quote Section (2/3 width) */
.employee-quote-section {
    flex: 2;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.employee-image {
    flex-shrink: 0;
    width: min(500px, 45vw); /* More responsive width */
    height: min(500px, 45vw); /* Maintain square aspect ratio dynamically */
    max-width: 45%;
    aspect-ratio: 1;
    min-width: 200px; /* Prevent it from getting too small */
    min-height: 200px;
}

.employee-image img,
.employee-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.employee-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #9d153d;
    color: white;
    font-size: clamp(2em, 8vw, 4em); /* Responsive font size */
    font-weight: bold;
}

.employee-quote-content {
    flex: 1;
    padding: 0;
    min-width: 0;
}

.employee-quote-icon {
    margin-bottom: 5px;
    max-width: 55px;
}

.employee-quote-icon svg {
    width: clamp(50px, 8vw, 86px); /* More responsive SVG size */
    height: auto;
    max-width: 100%;
}

.quote-text {
    font-size: clamp(18px, 2.5vw, 22px); /* Fluid typography */
    margin-bottom: 30px;
    color: #000000;
    line-height: 1.4;
    font-family: Inter, sans-serif;
    font-weight: 300;
}
#main-employee-name,
#main-employee-title {
    font-size: 22px;
    color: #000000;
    margin-bottom: 0px;
    font-family: Inter, Arial, Helvetica, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#main-employee-acronyms {
    font-weight: 300;
    margin: 0px;
    line-height: 1;
}
#main-employee-title  {
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.3;
}
#main-employee-name {
    font-weight: 900;
}

.employee-quote-content h3 {
    margin: 20px 0 10px 0;
    color: #9d153d;
    font-size: clamp(22px, 3.2vw, 32px); /* Fluid typography */
    font-weight: 900;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.employee-quote-content p {
    color: #000000;
    font-size: clamp(16px, 2vw, 20px); /* Fluid typography */
    margin: 5px 0 30px 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-weight: 400;
}

/* Employee List Section (1/3 width) */
.employee-list-section {
    flex: 1;
    max-width: 400px;
    min-width: 250px; /* Prevent from getting too narrow */
}

.employee-vertical-scroll {
    max-height: min(500px, 60vh); /* More responsive height */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.employee-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.employee-item {
    display: flex;
    align-items: stretch;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 0;
    min-height: auto;
    border-bottom: 1px solid #ECECEC;
}

.employee-item:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.employee-item.active {
    background-color: #f0f0f0;
    box-shadow: 0 4px 12px rgba(157, 21, 61, 0.2);
}

/* Remove greyscale on hover and active states */
.employee-item:hover .employee-thumbnail,
.employee-item.active .employee-thumbnail {
    filter: grayscale(0%);
}

.employee-thumbnail {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.employee-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.employee-name {
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #000000;
    line-height: 1.1;
    margin-bottom: 0;
}

.employee-title {
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #000000;
    line-height: 1.1;
    margin: 0;
}

/* Mobile Layout */
.employee-swipe-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile Navigation Arrows */
.mobile-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    border-radius: 50%;
}

.mobile-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.mobile-arrow span {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.mobile-arrow-left {
    left: 15px;
}

.mobile-arrow-right {
    right: 15px;
}

.employee-slide {
    display: none;
    padding: 30px;
    text-align: center;
}

.employee-slide.active {
    display: block;
}

.mobile-employee-image {
    width: min(250px, 70vw);
    height: min(250px, 70vw);
    margin: 0 auto 30px auto;
    border-radius: 0;
    overflow: hidden;
}

.mobile-employee-image img,
.mobile-employee-image .employee-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-employee-name {
    font-size: clamp(24px, 6vw, 28px);
    font-weight: 900;
    color: #9d153d;
    margin: 0 0 10px 0;
    font-family: Inter, Arial, Helvetica, sans-serif;  
}

.mobile-employee-title {
    font-size: clamp(16px, 4vw, 18px);
    color: #666;
    margin: 0 0 25px 0;
    font-family: Inter, Arial, Helvetica, sans-serif; 
}

.mobile-quote-text {
    font-size: clamp(18px, 4.5vw, 20px);
    line-height: 1.5;
    color: #333;
    margin: 25px 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-style: italic;
}

.mobile-employee-button {
    margin-top: 30px;
}

.mobile-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 0;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active,
.nav-dot:hover {
    background-color: #9d153d;
}
.employee-details .employee-name {
    font-weight: 900 !important;
}
/* Responsive Breakpoints */

/* Container queries for better control */
@container (max-width: 1200px) {
    .employee-image {
        width: min(400px, 40vw);
        height: min(400px, 40vw);
        max-width: 40%;
    }
}

@container (max-width: 900px) {
    .employee-image {
        width: min(300px, 35vw);
        height: min(300px, 35vw);
        max-width: 35%;
    }
}

/* Fallback media queries for browsers without container query support */
@media (max-width: 1400px) {
    .employee-image {
        width: min(450px, 42vw);
        height: min(450px, 42vw);
        max-width: 42%;
    }
    
    .desktop-layout {
        gap: clamp(20px, 3vw, 30px);
    }
}

@media (max-width: 1200px) {
    .employee-image {
        width: min(400px, 40vw);
        height: min(400px, 40vw);
        max-width: 40%;
    }
}

@media (max-width: 1024px) {
    .employee-image {
        width: min(350px, 38vw);
        height: min(350px, 38vw);
        max-width: 38%;
    }
    
    .desktop-layout {
        gap: clamp(15px, 2.5vw, 25px);
    }
}

@media (max-width: 900px) {
    .employee-image {
        width: min(300px, 35vw);
        height: min(300px, 35vw);
        max-width: 35%;
    }
    
    .employee-quote-section {
        gap: clamp(15px, 2vw, 20px);
    }
}

/* Hide image when space becomes too cramped */
@media (max-width: 800px) {
    .employee-image {
        display: none;
    }
    
    .employee-quote-section {
        flex-direction: column;
        gap: 0;
    }
    
    .employee-quote-content {
        padding: 0;
    }
}

/* Tablet Portrait - stack vertically */
@media (max-width: 768px) {
    .desktop-layout {
        flex-direction: column;
        gap: 20px;
        min-height: auto;
    }
    
    .employee-list-section {
        max-width: none;
        min-width: auto;
    }
    
    .employee-vertical-scroll {
        max-height: min(300px, 40vh);
    }
}

/* Mobile - switch to swipe layout */
@media (max-width: 820px) {
    .desktop-layout {
        display: none;
    }
    
    .mobile-layout {
        display: block;
    }
    
    .employee-showcase {
        margin: 20px 0;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .mobile-employee-image {
        width: min(200px, 60vw);
        height: min(200px, 60vw);
    }
    
    .employee-slide {
        padding: 20px;
    }
}

/* Tablet/Medium screen adjustments - Hide main headshot at 1068px */
@media (max-width: 1068px) {
    .employee-image {
        display: none;
    }
    
    .employee-quote-content {
        flex: 1;
        max-width: 100%;
    }
    
    .employee-quote-section {
        flex: 2;
    }
    
    .employee-list-section {
        flex: 1.5;
        max-width: none;
        min-width: 350px;
    }
}

/* Very small screens */
@media (max-width: 350px) {
    .mobile-employee-image {
        width: min(180px, 55vw);
        height: min(180px, 55vw);
    }
    
    .employee-slide {
        padding: 15px;
    }
}

/* Custom scrollbar */
.employee-vertical-scroll::-webkit-scrollbar {
    width: 6px;
}

.employee-vertical-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.employee-vertical-scroll::-webkit-scrollbar-thumb {
    background: #9d153d;
    border-radius: 0;
}
 
.employee-vertical-scroll::-webkit-scrollbar-thumb:hover {
    background: #7a1230;
}

#main-employee-button .fusion-button:hover {
    background-color: transparent !important;
}