/* people.css */
.people-page h2 {
    margin-bottom: 20px;
    font-size: 2rem;
  
}

.people-page .people-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: start;
    cursor: pointer; /* Make the people item clickable */
}

.people-page .people-image, 
.people-page .placeholder {
    width: 100px; /* Size of the image */
    height: 100px; /* Size of the image */
    border-radius: 50%;
    margin-right: 20px; /* Space between the image and text */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white-color);
    text-align: center;
    background-color: var(--second-accent-color); /* Placeholder background color */
}

.people-page .invisible {
    visibility: hidden; /* Ensure invisible placeholders do not disrupt layout */
}

.people-page .people-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.people-page .people-name {
    font-size: 1.1rem;
    font-weight: bold;
}

.people-page .people-media-volume {
    font-size: 1.1rem; /* Increased size of the "104 entries" text */
    color: var(--accent-color);
}

.people-page .people-role {
    font-size: 0.9rem;
    color: var(--second-accent-color) !important;
}

/* Select2 Item Styles */
.people-page .select2-item {
    display: flex;
    align-items: center;
}

.people-page .select2-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--white-color);
}

.people-page .select2-item .select2-item-name {
    font-size: 1rem;
    font-weight: bold;
    line-height: 28px; /* Ensures text aligns with image */
}

/* Custom class for Select2 container */
.select2-container--default .select2-results__options {
    max-height: 300px; /* Increase height to show more items */
    overflow-y: auto; /* Enable scrolling if needed */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px; /* Adjust line height to match Select2 dropdown */
}

/* Results Section */
.people-page .results-section {
    display: none;
    margin-top: 30px;
}

.people-page #resultsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.people-page .media-card {
    margin-bottom: 20px;
    flex: 1 1 calc(33.333% - 10px); /* 3 columns layout with gap */
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    max-width: 32.53%;
}

.people-page .media-card:hover {
    transform: scale(1.05);
}

.people-page .media-card img {
    width: 100%;
    height: 250px; /* Increased height */
    object-fit: cover;
    object-position: top;
}

.people-page .icon-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: 5px;
}

.people-page .card-body {
    background-color: var(--background-color);
    padding: 20px;
    border-top: 1px solid #dee2e6;
    /* border-radius: 0 0 10px 10px; */
}

.people-page .card-title {
    font-size: 1rem; /* Reduced font size */
    font-weight: bold;
    color: var(--accent-color);
}

.people-page .card-date {
    font-size: 0.9rem; /* Reduced font size */
    color: var(--primary-color); /* Changed color */
    text-transform: uppercase;
    text-align: right;
}

.people-page .scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    text-align: center;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.people-page .scroll-to-top:hover {
    background-color: var(--secondary-color);
}

.people-page .card-event i, .people-page .card-people i {
    color: var(--primary-color); /* Changed color for icons only */
}

.people-page .card-event a,.people-page .card-date a, .people-page .card-people a {
    color: var(--primary-color); /* Text color remains the same */
    text-decoration: none;
    transition: color 0.2s ease;
}

.people-page .card-event a:hover,.people-page .card-date a:hover, .people-page .card-people a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.people-page #moreResultsButton {
    background-color: var(--primary-color);
    border: none;
    margin-top: 20px;
    width: 100%;
}

.people-page #moreResultsButton:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .people-page .media-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Styles for the person's image in the title */
.person-title-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.people-page .people-item-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--background-color);
}

.people-page .selected-person {
    background-color: #fff9c4; /* Faded yellow background */
    padding: 2px 5px;
    border-radius: 3px;
}

.people-page .rtl-text {
    direction: rtl;
    text-align: right;
}