.showing-popup {
  max-height: 90vh;       /* Keep popup within screen */
  overflow-y: auto;       /* Enable vertical scroll */
  overflow-x: hidden;     /* Prevent side scroll */
  scroll-behavior: smooth; /* Optional: smooth scrolling */
}

div#team-popup {
    margin: 0;
}

h3.popup-title.icon::before {
    content: '';
    position: absolute;
    top: 2.2rem;
    left: -6rem;
    transform: translateY(-50%);
    width: 14rem;
    height: 14rem;
    background-image: url(https://revamp.edtheory.com/wp-content/uploads/2025/10/yellow-snow.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    z-index: -1;
}
h3.popup-title.icon {
    margin-bottom: 0;
}

h3.popup-title.icon {
    position:relative
}

.showing-popup-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-right: 5rem;
}

.popup-description {
    text-align: left;
}

p.below {
    text-align: left;
    margin-bottom: 0.5rem;
    font-weight:600;
}

.showing-popup-content h3 {
    text-align: left;
    font-size: 3rem !IMPORTANT;
}

.popup-description {
    border-top: 0.3rem solid #000;
    padding-top: 1rem;
}


/* Popup Styles */
#team-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.team-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
}

.team-popup-content {
    position: relative;
    width: 90%;
    border-radius: 9rem 0rem 9rem 0rem !important;
    max-width: 70%;
    margin: 5% auto;
    background: #fff;
    z-index: 10;
    text-align: center;
    padding: 0;
}

.team-popup-content img {
    margin-bottom: 0;
    border-radius: 5px;
    height: 68vh;
    z-index:-2;
}

.below img {
     max-width:1.2rem;
}
.close-popup {
    position: absolute;
    top: -2rem;
    right: -2rem;
    font-size: 3rem;
    cursor: pointer;
    background: #000;
    line-height: 0.585;
    color: #fff;
    padding: 1rem;
    padding-top: 0.8rem;
    border-radius: 50%;
}

/* Page-specific footer spacing */
.page-id-1177 footer.wp-block-template-part {
    margin-top: 10rem;
}

/* Popup content display for team members (optional: flex for multiple elements) */
.showing-popup {
    display: flex;
    gap: 2rem;
}

/* View member button image */

a.view-member img {
    max-width: 1.5rem !important;
    height: 1.5rem !important;
}

.team-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-bottom: -3rem;
    justify-content: center;
    position: relative;
    top: -5.35rem;
    left: 0rem;
}
.team-tabs li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-right: 1rem;
    font-weight:600;
}
      /* Tabs */
.team-tab-content {
    display: none;
}

.team-tab-content.active {
    display: block;
}

/* Team Members Layout */
.team-members {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Global Team Title */
p.global-team {
    max-width: 30rem;
    font-size: 4rem;
    font-weight: 600;
}

/* Individual Team Member */
.team-member {
    background: #fff;    
    border-bottom: 0.3rem solid #000;
    width: 25%;
    padding-bottom: 0.5rem;
}

/* Team Member Image */
.team-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Team Member Name */
.team-name {
    margin: 0rem;
    font-weight: 600;
    text-align: left;
    font-size: 2rem;
}

.team-tabs li.active::before {
    content: '';
    position: absolute;
    top: 1.2rem;
    left: 0.5rem;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background-image: url(/wp-content/uploads/2025/07/highlight.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    z-index: -1;
}
.team-tabs li.active{
    position:relative
}


figure.wp-block-image.size-large.violete-line {
    position: absolute;
    left: -5rem;    
    max-width: 100vw;
    width: 100vw;
    z-index: -1;   
}
.team-tabs-wrapper {
    margin-top: 14rem;
}
p.our-team-title {
    font-size: 9rem;
    font-weight: 800;
    line-height: 1;
}
p.our-team-desc {
    font-size: 2.8rem;
    max-width: 50%;
    font-weight: 600;
    line-height: 1.1;
    margin-left: 1rem;
    margin-top: 0rem;
}


@media(max-width:1024px){
   

.team-popup-content img {    
    height: auto !important;
    
}
    .showing-popup {
    display: flex;
    gap: 2rem;
    margin-top: 10rem !important;
}
    
}

@media(max-width:991px){
     .showing-popup {        
        margin-top: 4rem !important;
    }
    .team-members {
    display: flex;  
    flex-direction: column;
}
.team-member {   
    width: 100%;
}
.team-name {
        margin: 1rem;
        margin-left: 0;
        font-weight: 600;
        font-size: 2rem;
 }

.team-tabs {
    display: flex;
    flex-wrap: wrap;   
    justify-content: center;  
    flex-direction: column;
    align-items: flex-end;
}
    p.global-team {
        max-width: 25rem;
        font-size: 3rem;
        font-weight: 600;
        position: relative;
        top: 6.35rem;
        left: 4rem;
    }

   
.team-tabs-wrapper {
    margin-top: 10rem;
}
.orange-flower img {
    max-width: 6.5rem;
}
   p.our-team-title {
        font-size: 5rem;
        font-weight: 800;
        line-height: 1.2;
    }
   p.our-team-desc {
        font-size: 2.5rem;
        max-width: 100%;
        font-weight: 600;
        line-height: 1.1;
        margin-left: 0.5rem;
        margin-top: 0rem;
    }
    .wp-block-column.our-team-banner-content {
    margin-top: -9rem;
    margin-left: 8rem;
}
    section.wp-block-group.our-team-banner {
    margin-top: -5rem;
}
    figure.wp-block-image.size-large.violete-line {
    position: absolute;
    left: -2rem;

}
    
    .showing-popup-content {   
    padding: 2rem !important;
}
    .showing-popup {
    display: flex;
    gap: 2rem;
    flex-direction: column !important;
}
    a.view-member img {
    max-width: 1.85rem !important;
    height: 1.85rem !important;
}
    .team-popup-content img {
    margin-bottom: 0;    
    height: 100% !important;        
    border-radius: 9rem 0rem 0rem 0rem !important;
}

    .team-popup-overlay {
    position: absolute;
    top: -1.35rem;

}
    h3.popup-title.icon::before {
    content: '';
    position: absolute;
    top: 1.2rem !important;
    left: 16rem !important;   
    width: 8rem !important;
    height: 8rem !important;
}
    
}

@media(max-width:767px){
  figure.wp-block-image.size-large.violete-line {
    position: absolute;
    left: -4rem !important;

}   
 
     p.global-team {
        max-width: 25rem;
        font-size: 3rem;
        font-weight: 600;
        position: relative;
        top: 10.35rem;
        left: -2rem;
    }
}