/* General Setup */
.team-section {
  text-align: center;
  padding: 80px 0;
  background: #f8f9fa;
}

.team-section h2 em {
  color:#00578A;
  font-style: normal;
}

.team-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Main Content Area content area box sizing*/
.main-content-display {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 290px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease-in-out; 
}

.member-photo-wrapper {
    flex-shrink: 0;
    overflow: hidden;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-right: 10px;
}

.member-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.team-member-details {
    flex-grow: 1;
    text-align: left;
   margin-left: 20px;
}

.team-member-details h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 5px;
    margin-left: 20px;
}

.team-member-details h3 {
    font-size: 1.2em;
    color: #00578A; /* Accent color */
    margin-bottom: 20px;
    margin-left: 20px;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 2rem;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev-arrow { left: 0; }
.next-arrow { right: 0; }

/* Thumbnails Bar */
.team-thumbnails-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s, transform 0.3s;
    gap: 25px;
}

.thumbnail-item {
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: center; /* Center image and text */
    cursor: pointer;
    transition: 0.3s;
    
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: #00578A; /* Highlight active member */
    transform: scale(1.1);
}

.thumbnail-name {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    transition: color 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content-display {
        flex-direction: column;
        text-align: center;
    }
    .member-photo-wrapper {
        width: 150px;
        height: 150px;
        order: -1; /* Move photo above text on mobile */
    }
    .nav-arrow {
        top: 25%;
    }
}