/* Team Member Grid Layout */
.banner{
background-image: url('https://rauschadvisory.com/wp-content/uploads/2025/02/Group-61-1.png');
background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height:60vh;
  box-sizing: border-box;
}
.main{
background-image: url('https://rauschadvisory.com/wp-content/uploads/2025/02/470791220_1139294237754564_3719511967253380777_n.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  color: #fff;
  display:flex;
  justify-content:center;
}
.team-section {
  width:100%;
  max-width:1400px;
}
.team-heading h1{
font-size:120px;
}
@media(max-width:696px){
.team-heading h1{
font-size:50px;
text-align:center;
}
}
.team-members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.team-member {
    text-align: center;
    cursor: pointer;
    margin: 20px
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.team-member .member-name {
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    color: #fff
}

.team-member p {
    font-size: 14px;
    color: #fff
}
h3#popup-title{
    font-size: 20px;
    color:#000;
}
h3#popup-name{
color:#000;
}
h4#popup-title{
color:#000;
}

/* Popup Styling */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 1200px;
    max-width: 100%;
    align-items: center;
    position: relative;
    margin-top:100px;
}

.popup-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.popup-image {
    width: 30%;
    margin-right: 20px;
}

.popup-image img {
    /*width: 100%;*/
    /*height: 100%;*/
    object-fit: cover; /* Ensures the image covers the space while maintaining aspect ratio */
    border-radius: 8px;
}

#popup-info {
    width: 70%;
    text-align: left;
    padding: 0 20px;
}

p#popup-description {
    font-size: 12px;
    color:#000
}

.popup-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
    position: absolute;
    top: 40%;
}

.nav-btn {
    background-color: #004a7c;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 0px;
    font-size: 18px;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color:#8F1B14;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    background-color: transparent;
    border: none;
}

@media screen and (max-width: 1200px) {
    .popup-content {
        width: 90%;
    }
}
@media screen and (max-width:580px){
    p#popup-description{
        height: 200px;
    overflow: scroll;
    padding-right: 10px;

    }
    .nav-btn {
        width: 10% !important;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 768px) {
    .popup-details {
        flex-direction: column;
        align-items: center;
    }

    .popup-image {
        margin-right: 0;
        margin-bottom: 20px;
        width: 200px;
    }

    #popup-info {
        width: 100%;
    }

    .popup-nav {
        flex-direction: row;
        width:100%;
    }

    .nav-btn {
        width: 5%;
        margin-bottom: 10px;
    }
    h2#popup-name{
        font-size:20px;
        
    }
    h3#popup-title{
        font-size:18px;
    }
    .team-members{
        display:block;
        
    }
    .team-member img{
      width:300px;
    }
    
}