/* Officer Card Styles */
.officer-card {
    position: relative;
    background: #fff;
    margin-top: 0; /* Remove top margin as we'll position the photo differently */
    height: 100%; /* Make card fill container height */
    display: flex;
    flex-direction: column;
}

/* Card Header Background */
.card-header-bg {
    height: 70px;
    background-size: cover;
    background-position: center;
    background-color: #004B87; /* Fallback color - you can change this */
    border-radius: 0.375rem 0.375rem 0 0;
    flex-shrink: 0; /* Prevent header from shrinking */
}

/* Profile Photo Wrapper */
.profile-photo-wrapper {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 2px;
    background: #fff;
    z-index: 1; /* Ensure photo stays above the card */
}

/* Profile Photo */
.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef; /* Fallback color for missing images */
    overflow: hidden; /* Ensure the image stays within the circular boundary */
}

/* Card Body Adjustments */
.officer-card .card-body {
    padding-top: 60px !important; /* Increased padding to accommodate photo */
    position: relative; /* Ensure proper stacking context */
    flex: 1; /* Allow card body to grow and fill space */
    display: flex;
    flex-direction: column;
}

/* Name and Affiliation Styling */
.officer-card .card-body h5 {
    margin-bottom: 0.25rem; /* Reduce space after name */
}

.officer-card .card-body .affilliation {
    min-height: 2.5em; /* Accommodate up to 2 lines of text */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* margin-bottom: 0.5rem; */
}

/* Position Info Styling */
.position-info {
    margin-top: auto; /* Push position info to bottom */
    /* padding-top: 0.5rem; */
}

.position-info strong {
    color: #004B87; /* You can change this to match your theme */
    font-size: 1rem;
}

.position-info .small {
    display: block;
    margin-top: 0.25rem;
}

/* Name Styling */
.name-first {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1rem;
}

.name-last {
    text-transform: uppercase;
    font-size: 1rem;
    /* letter-spacing: 0.05em; */
}

.nav-pills-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.nav-pills-wrapper {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    position: relative;
    width: 100%;
}

.nav-pills-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#pastOfficersTabs {
    flex-wrap: nowrap;
    margin-bottom: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.nav-scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease;
}

.nav-scroll-button.prev {
    left: 0;
}

.nav-scroll-button.next {
    right: 0;
}

.nav-scroll-button.hidden {
    opacity: 0;
    pointer-events: none;
}

#pastOfficersTabs .nav-link {
    white-space: nowrap;
    margin: 0 4px;
} 