/*section will be change */


.member-inner {
    margin: 150px 0 50px 0;
}

.navbar{
    top: 0;
}

#single-bio .navbar .nav-links a {
    color: var(--color-secondary);
}

.back_btn a > span {
    display: none;
}
.inner-hero .hero-wrap {
    max-width: 1003px;
    padding-bottom: 275px;
}
.back_btn .global-btn-icon-wrapper {
    width: auto;
    transform: rotate(180deg);
}

.back_btn > a {
    margin-bottom: 20px;
}

/* .team_text{
    padding-bottom: 0;
} */

.team_text .title3 {
    text-align: left;
    margin-top: 30px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin:61px 0px 48px
}

.member-card {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.member-card.is-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    display: none;
}

.profile-name {
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 200;
    line-height: 100%;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.profile-title {
    font-weight: 200;
    font-size: clamp(16px, 1.5vw, 20px); 
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: var(--color-primary);
}

.member-card > a {
    text-align: center;
    color: var(--color-primary);
    position: relative;
    display: block;
    text-decoration: none;
}

figure.profile {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin: 0;
}

figure.profile > img {
    width: 100%;
    display: block;
}

figure.profile:after {
    content: "";
    background: var(--mid-tone-gray);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

figure.profile:before {
    content: "";
    background: url('/wp-content/uploads/2026/08/arrow.svg') no-repeat center center;
background-size: 30px 22px;
    background-color: var(--mustardGold); 
    color: var(--color-white);
    width: 60px;
    height: 60px;
    display: block;
    border-radius: 80%;
    position: absolute;
    bottom: 37px;
    left: 0;
    right: 0;
    z-index: 11111;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    margin: auto;
}

.member-card > a:hover .profile:after {
    opacity: 0.5; 
    visibility: visible;
}

.member-card > a:hover .profile:before {
    opacity: 1; 
    visibility: visible;
}

.details {
    margin-top: 18px;
}

.arrow {
    background: var(--mustardGold);
    color: #fff;
    width: 79px;
    height: 79px;
}

/* --- custom dropdoew --- */
.custom-dropdown {
    position: relative;
    width: 220px;
    user-select: none;
    font-family: inherit;
}

.custom-dropdown .dropdown-selected {
    padding: 10px 26px 10px 18px;
    background: var(--color-white);
    border: 1px solid var(--light-gray-border);
    border-radius: 58px;
    cursor: pointer;
    color: #0A152B;
    transition: border-color 0.3s ease;
    position: relative;
    font-weight: 200;
    font-size: 17px;
    line-height: 100%;
    letter-spacing: 0%;
}

.custom-dropdown .arrow-down {
    background-color: var(--mustardGold);
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 60%;
    position: absolute;
    bottom: 0;
    right: 1px;
    z-index: 22;
    margin: auto;
    top: 0;
    box-sizing: border-box;
    transform: rotate(90deg);
}

.custom-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--light-gray-border);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    list-style: none;
    padding: 0;
    margin: 0;
    
    /* Smooth Animation States without Jerk */
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    z-index: 99;
}

.custom-dropdown.is-open .dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.custom-dropdown .dropdown-menu li {
    padding: 10px 16px;
    cursor: pointer;
    color: var(--color-primary);
    transition: background 0.2s ease, color 0.2s ease;
    font-weight: 200;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
}

.custom-dropdown .dropdown-menu li:hover {
    background: #f0f4f8;
    color: var(--color-primary);;
}

.custom-dropdown .dropdown-menu li.is-selected {
    font-weight: 400;
}


/*team bio*/
.member-detail-layout {
    display: grid;
    grid-template-columns: 505px 1fr;
    align-items: start;
}

.single-profile {
    border-radius: 20px;
    overflow: hidden;
}

.single-profile > img{
   width: 100%;
}

.s-profile-name {
    font-weight: 200;
    font-size: clamp(30px, 4.5vw, 60px);
    line-height: 100%;
    letter-spacing: 0%;
    color: #0A152B;
    margin-bottom: 10px;
}

.s-profile-title {
    font-weight: 200;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 41px;
    letter-spacing: 0%;
    color: #0A152B;
}

.modal-details{
    position: relative;
    margin-top: 16px;
    padding-top: 30px;
    padding-left: 50px;
}

.title_group{
     padding-left: 50px;
}

.modal-details:after {
    background: var(--mid-tone-gray);
    height: 1px;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 20%;
}

p{
    font-weight: 200;
    font-size: 18px;
    line-height: 112%;
    letter-spacing: 0%;
    margin-bottom: 15px;
}

.custom-dropdown {
    position: relative;
    width: 320px;
    cursor: pointer;
}

.custom-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown-selected {
    transition: all 0.3s ease;
}

.arrow-down {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;

    backdrop-filter: blur(20px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-20px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;

    z-index: 99;
}

/* Open dropdown */

/*.custom-dropdown:hover .dropdown-menu,
.custom-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}*/

/* Hide arrow */

/*.custom-dropdown:hover .arrow-down,
.custom-dropdown:focus-within .arrow-down {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
}*/

.custom-dropdown .arrow-down {
    opacity: 1;
    visibility: visible;
    transform: rotate(90deg) translateY(0);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}

/* Hide icon when dropdown is open */
/* .custom-dropdown.is-open .arrow-down {
    opacity: 0;
    visibility: hidden;
    transform: rotate(90deg) translateY(-8px);
} */

/* Dropdown */
.custom-dropdown .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;

    z-index: 99;
}

/* Open */
.custom-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Menu items */

.dropdown-menu li {
    padding: 12px 16px;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.dropdown-menu li:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.s-profile-contact {
        font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #0A152B;
    margin-top: 16px;
}

.s-profile-contact a {
    color: #0A152B;
}


.s-profile-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.5;
}

.s-profile-contact > a,
.s-profile-contact > .s-profile-contact-item {
    width: 100%;
    padding: 14px 0;
}

/* Hide | separators */
.s-profile-contact > span:not(.s-profile-contact-item) {
    display: none;
}

/* Keep label + phone number on the SAME line */
.s-profile-contact .s-profile-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border-top: 1px solid rgba(96, 96, 96, 0.3);
}

/* LinkedIn */
.s-profile-contact > a:last-child {
    border-top: 0px solid rgba(96, 96, 96, 0.3);
}

.s-profile-contact > a:last-child img {
    width: 20px;
    height: 20px;
    display: block;
}
                    
.s-profile-contact a:not(:last-child){
    display: none;
}
.s-profile-contact span,.s-profile-contact span a,.s-profile-contact .s-profile-contact-item{display: none;}
@media screen and (max-width:1440px) {
    .inner-hero .hero-wrap {
        padding-bottom: 150px;
    }
}

@media screen and (max-width:1368px) {
.member-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
}

@media (max-width: 1024px) {
    .inner-hero .hero-wrap {
            padding-bottom: 135px;
        }
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-detail-layout{
        display: block;
    }

    .title_group{
        padding-left: 0;
    }

    .modal-details{
        padding-left: 0;
    }

    .single-profile {
        border-radius: 20px;
        overflow: hidden;
        max-width: 300px;
        margin: 0 auto 30px;
    }
    .heading {
            max-width: 780px;
    margin: 0 auto;
    }
}


@media (max-width: 768px){
    .member-grid{
        gap: 15px;
    }
        .inner-hero .hero-wrap {
            padding-bottom: 80px;
        }
    .member-inner {
        margin: 80px 0 50px 0;
    }
    #team-grid {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
/*     .custom-dropdown .dropdown-menu {
        display: none;
    }

    .custom-dropdown.open .dropdown-menu {
        display: block;
    }*/

    .member-detail-layout {
        display: flex;
        flex-direction: column;
    }

    /* Profile image */
    .single-profile-top {
        display: contents;
    }

    .single-profile {
        order: 1;
        max-width: 300px;
        margin: 0 auto 30px;
    }

    /* Name + title */
    .modal-content {
        display: contents;
    }

    .title_group {
        order: 2;
        padding-left: 0;
    }

    /* Bio */
    .modal-details {
        order: 3;
        padding-left: 0;
        margin-top: 16px;
    }

    /* Contact - after bio */
    .s-profile-contact {
        order: 4;
        margin-top: 25px;
        padding-top: 20px;
        padding-left: 0;
        width: 100%;
        border-top: 1px solid rgba(10, 21, 43, 0.2);
        line-height: 1.6 !important;
    }
    .member-card {
        padding-bottom: 30px;
    }
    
}
@media (max-width: 600px) {
.single-profile{
    margin: 0 0 30px;max-width: 100%;
}
}
@media (max-width: 420px){
    .member-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}