/* Responsive breakpoints for mobile and tablet, matching index.html */
@media (max-width: 768px) {
    .members-section {
        min-height: 65vw;
        height: 65vw;
        max-height: 80vw;
        padding: 1.2rem;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: initial !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: relative;
    }
    .members-section h1 {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
        margin-bottom: 0.5rem;
        background: rgba(0,0,0,0.15);
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }
    .members-intro {
        padding: 1.2rem 1rem;
        font-size: 1rem;
        max-width: 98vw;
    }
}

@media (max-width: 480px) {
    .members-section h1 {
        font-size: 1.3rem !important;
        padding: 0 0.5rem;
    }
}

@media (max-width: 360px) {
    .members-section h1 {
        font-size: 1.1rem !important;
        padding: 0 0.5rem;
    }
}
.members-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center ;
    background-attachment: fixed;
    color: white; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 0 1rem;
    background-image: url('Web Images/members-section-img.png');
}

.seniors-section{
    margin: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.seniors-section h2{
    text-align: center;
    margin-bottom: 2rem;
}


.members-section h1 {
    font-size: 4rem;
    margin-bottom: 0rem;
    font-weight: 600;
}

.members-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 20px 40px;
}

@media ( max-width: 1120px){
    .members-container{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px){
    .members-container{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 630px){
    .members-container{
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Intro text section styling (matches Professionalism page) */
.professional-intro {
    margin-top: 2rem;
    padding: clamp(0.6rem, 2.5vw, 1.2rem) 6vw;
    max-width: 1100px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.05rem, 1.9vw, 1.45rem);
    line-height: 1.6;
    background: none;
}

.feature-text {
    flex: 1;
    text-align: center;
    font-size: clamp(1.12rem, 1.8vw, 1.36rem);
    line-height: 1.7;
    max-width: 920px;
    margin: 0 auto;
}

/* Mobile responsiveness for intro text */
@media (max-width: 768px) {
    .professional-intro {
        padding: 1.2rem 1rem;
        font-size: 1rem;
        max-width: 98vw;
    }
    .feature-text {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 1rem;
    }
}