/* Styles for the About Page */

/* Team Section */
.team {
    background-color: #1b181c;
    color: white;
    padding: 20px;
    margin: 10px;
    border-radius: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.31);
    border: 20px #000;
    text-align: center;
}

.team-member {
    background: #5b4b8a;
    color: white;
    padding: 20px;
    margin: 10px;
    width: 30%;
    border-radius: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.31);
    border: 20px #000;
    border-left: 8px solid rgb(81, 147, 208);
    text-align: center;
}

.team-member h4 {
    margin-top: 0;
    color: #e3e6ea;
}

/* Team Member Image */
.team-member img {
    max-width: 100%;
    border-radius: 50%;
    margin-bottom: 10px;
}

.teamh2 {
    font-family: Arial, Helvetica, sans-serif;
}

/* About Section */
#about {
    padding: 20px;
    color: white;
    border-radius: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.31);
    border: 20px #000;
    margin: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 30px;
}

.about-detail-card {
    background-color: #392f56;
    border-left: 8px solid #ed6e75;
    color: white;
    padding: 20px;
    margin: 10px;
    width: 30%;
    border-radius: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.31);
}

/* Mission Section */
.mission {
    padding: 20px;
    color: white;
    border-radius: 15px;
    background-color: #5b4b8a;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.31);
    border: 20px #000;
    margin: 10px;
}

/* --- Mobile Expandable Section Styles --- */

/* Hide the button by default (for desktop) */
.mobile-expand-button {
    display: none;
    margin-top: 10px;
}

/* Media query for mobile devices */
@media (max-width: 767px) {
    /* Stack the about cards vertically on mobile */
    #about {
        flex-direction: column;
        align-items: center;
    }

    .about-detail-card {
        width: 95%; /* Make cards wider on mobile */
    }

    /* Hide the expandable content initially on mobile */
    .mobile-expandable-content {
        display: none;
    }

    /* Show the button on mobile */
    .mobile-expand-button {
        display: inline-block;
    }

    /* Style for when the content is expanded on mobile */
    .mobile-expandable-content.expanded {
        display: block;
    }

    /* Ensure headings remain visible */
    #about h2,
    #about h3 {
        display: block;
    }
}
