.person-content-wrapper {
    width: 100%;
}

.person-content-wrapper .person-activities-wrapper h3,
.person-content-wrapper .person-menu-wrapper h3 {
    font-size: 1.3em;
    background: #ececec;
}

.person-content-wrapper .person-menu-wrapper .list-wrapper {
    border: 1px solid #ececec;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.fancy-accordion .panel {
    margin: 0.7rem 0;
    border-radius: 4px;
    background-color: transparent !important;
    box-shadow: none !important;
}

.fancy-accordion .panel-heading {
    padding: 0;
    margin: 0.7rem 0;
    border-radius: 4px;
    border: 0.5px solid #333 !important;
    box-shadow: none !important;
    position: relative;
}

.fancy-accordion .panel-title {
    margin: 0;
    padding-right: 1.5rem;
}

.panel-body {
    padding: 0;
    border: 0;
}

.fancy-accordion .panel-title a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative;
}

/* Hover state for the heading link */
.fancy-accordion .panel-title a:hover {
    background-color: #f9f9f9;
    text-decoration: none;
}

/* === Index Badge (the circle or arrow) === */
.accordion-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    position: absolute;
    top: 1.1rem;
    right: -3rem;
    height: 34px;
    background-color: #2D336B;
    /* Change to desired color */
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
}

/* === Animated Arrow Icon on the far left (FontAwesome example) === */
.fancy-accordion .panel-title a::before {
    font-family: 'FontAwesome';
    content: "\f107";
    /* FontAwesome icon for a down arrow */
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #999;
}

/* Rotate arrow on collapse */
.fancy-accordion .panel-title a.collapsed::before {
    transform: translateY(-50%) rotate(-90deg);
}

/* === Panel Body Animation === */
.fancy-accordion .panel-collapse {
    border-top: none;
}

/* Fade and slide animation */
.fancy-accordion .panel-collapse .panel-body {
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.person-text-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.person-text-content-wrapper h1 {
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    align-self: stretch;
}

.person-post {
    display: flex;
    justify-content: start;
    font-weight: 100;
}

@media only screen and (max-width: 768px) {

    .person-post,
    .person-post span {
        width: 100%;
    }

    .labels-wrapper {
        flex-wrap: wrap;
        text-align: center;
    }
}

.person-post span {
    padding: 0.4rem 1.2rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 15px;
    font-size: 1.1rem;
}

.person-post:nth-child(2) span {
    background: #7886C7;
    color: #fff;
}

.person-post:nth-child(3) span {
    background: #2D336B;
    color: #fff;
}

.labels-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: start;
    align-content: start;
    align-self: start;
    align-items: center;
}

.person-media-content-wrapper {
    margin: 2rem 0 0 0;
}

.person-media-content-wrapper img {
    border: 2px solid #000;
    filter: drop-shadow(9px 6px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease-in-out;
}

.person-media-content-wrapper img:hover {
    filter: drop-shadow(12px 6px 6px rgba(0, 0, 0, 0.6));
    cursor: pointer;
    transform: translateY(-8px);
}

.person-media-content-wrapper svg {
    width: 100%;
}

.activities-title,
.network-graph-wrapper h2,
.person-title {
    text-align: right;
    font-weight: bolder;
    font-size: 2.2rem;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 3.5px solid;
}
h5.activities-title {
    text-align: right;
    font-weight: bolder;
    font-size: 1.8rem;
    padding: 5px 0 !important;
    margin: 10px 0px!important;
    border-bottom: 1.5px solid;
}

.person-title {
    font-size: 2rem;
    color: #191C38;
    border-bottom: 0;
}

#accordion {
    padding: 0 1rem 0 0;
}

.list-wrapper {
    text-align: center;
}

.last-updated-title {
    font-weight: bold;
    font-size: 1.5rem;
    border-top: 3.3px solid #333;
    margin-top: 1rem;
}

.bio-link-buttons {
    width: 100%;
    text-align: center;
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-radius: 15px;
    max-width: 35rem;
    display: flex;
    margin: 0.7rem auto;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.85);
    background-color: rgba(0, 0, 0, 0.85);
}

.bio-link-buttons:hover {
    background-color: #ececec !important;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    color: #333 !important;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.contact-info-title-head {
    font-weight: bold;
    font-size: 1.6rem;
}

.border-b-1 {
    border-bottom: 1px dashed #666060;
}

.tooltip {
    position: absolute;
    background: black;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

.contact-info:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.contact-info {
    position: relative;
    cursor: pointer;
}

.centered-flex-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
}