/* Members Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1 {
    text-align: center;
    color: var(--pullman-green);
    font-size: 3rem;
    margin: 2rem auto 3rem;
    position: relative;
    font-family: "Playfair Display", serif;
    width: 100%;
}

h1:after {
    content: '';
    display: block;
    width: 240px;
    height: 3px;
    background: var(--bite-brown);
    margin: 1rem auto;
}

/* Section Styles */
.section-title {
    text-align: center;
    color: var(--pullman-green);
    margin: 4rem 0 2rem;
    font-size: 2.5rem;
    position: relative;
    font-family: "Playfair Display", serif;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--bite-brown);
    margin: 1rem auto;
}

.section-description {
    text-align: center;
    color: #4a5568;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: "Open Sans", sans-serif;
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 3fr));
    gap: 2rem;
    padding: 2rem;
    margin: 0 auto 3rem;
    background-color: rgba(146, 110, 27, 0.1);
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
    max-width: 1400px;
}

/* Member Card Styles */
.member-card {
    background-color: var(--cosmic-latte);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    height: 410px;
    border: 1px solid rgba(146, 110, 27, 0.2);
}
.choir , .orchestra {
    height: 400px;
}
.member-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.member-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.member-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--cosmic-latte), transparent);
    pointer-events: none;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.member-card:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 1.2rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255, 249, 235, 0.95), rgba(255, 249, 235, 1));
}

.member-info h3 {
    color: var(--pullman-green);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: "Playfair Display", serif;
}

.member-info p {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #4a5568;
    font-family: "Open Sans", sans-serif;
}

.member-role {
    color: var(--bite-brown);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: var(--cosmic-latte);
    margin: 5% auto;
    padding: 2.5rem;
    width: 95%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--pullman-green);
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.modal-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-name {
    color: var(--pullman-green);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-role {
    color: var(--bite-brown);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-bio {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.modal-achievements {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.modal-achievements h4 {
    color: var(--pullman-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.achievements-list {
    list-style: none;
    padding: 0;
}

.achievements-list li {
    color: #4a5568;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.achievements-list li::before {
    content: '•';
    color: var(--bite-brown);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Section Dividers */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--bite-brown), transparent);
    margin: 4rem 0;
    opacity: 0.3;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .members-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.2rem;
        padding: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
        margin: 3rem 0 1.5rem;
    }

    .member-card {
        height: 380px;
    }
    .choir , .orchestra {
        height: 340px;
    }
    .member-image {
        height: 230px;
    }

    .member-info {
        padding: 1.1rem;
    }

    .member-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .member-info p {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .member-role {
        font-size: 1em;
    }
    h1 {
        font-size: 2.2rem;
        margin: 1.5rem auto 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin: 3rem 0 1.5rem;
    }

    .member-card {
        height: 365px;
    }
    .choir , .orchestra {
        height: 300px;
    }
    .member-image {
        height: 200px;
    }

    .member-info {
        padding: 1rem;
    }

    .member-info h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .member-info p {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .member-role {
        font-size: 0.9rem;
    }
    h1 {
        font-size: 2.2rem;
        margin: 1.5rem auto 2.5rem;
    }
    
    .modal-content {
        padding: 1rem;
        margin: 10% auto;
    }
    .modal-header {
        margin-bottom: 0.5rem;
    }
    .modal-image {
        width: 150px;
        height: 150px;
        margin-bottom: 1.2rem;
    }
    .member-role {
        font-size: 1rem;
    }
    .modal-bio {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .modal-header {
        text-align: center;
        margin-bottom: 2.5rem;
    } 
    .modal-achievements {
        padding: 1.5rem;
    }
    
    .modal-achievements h4 {
        margin-bottom: 1.1rem;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 500px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .member-card {
        height: 300px;
    }
    .choir , .orchestra {
        height: 250px;
    }
    .member-image {
        height: 160px;
    }

    .member-info {
        padding: 0.4rem;
    }

    .member-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .member-info p {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    .member-role {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin: 2rem 0 1rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    h1 {
        font-size: 2rem;
        margin: 1rem auto 2rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 5% auto;
    }
    .modal-header {
        margin-bottom: 1.5rem;
    }
    .modal-image {
        width: 150px;
        height: 150px;
        margin-bottom: 1.3rem;
    }

    .modal-name {
        font-size: 1.7rem;
    }

    .modal-role {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .modal-bio {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .modal-achievements {
        padding: 1rem;
    }
    
    .modal-achievements h4 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }


}