/* --- Page Header --- */
.page-header {
    background: linear-gradient(rgba(87, 46, 125, 0.85), rgba(87, 46, 125, 0.85)), url('pics/hero/IMG_2722.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

/* --- Mission Vision --- */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.mv-card {
    background: white;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(87, 46, 125, 0.08);
    border-radius: 15px;
    text-align: center;
    border: 1px solid #f0e6ff;
    transition: transform 0.3s ease;
}

.mv-card:hover { transform: translateY(-5px); }
.mv-card i { font-size: 3.5rem; color: #572e7d; margin-bottom: 20px; }

.about-text-center { text-align: center; max-width: 800px; margin: 0 auto; }
.about-text-center h2 { margin-bottom: 20px; color: #572e7d; font-size: 2.2rem; }

/* --- New Team Grid Layout (Vertical Stack) --- */
.team-grid-new {
    display: flex;
    flex-direction: column;
    gap: 60px; /* Space between members */
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(87, 46, 125, 0.05);
    border: 1px solid #f0e6ff;
    transition: 0.3s;
}

.team-member:hover {
    box-shadow: 0 10px 30px rgba(87, 46, 125, 0.15);
}

/* --- The Coin Flip Animation --- */
.coin-wrapper {
    width: 220px;
    height: 220px;
    perspective: 1000px; /* Essential for 3D effect */
    margin-bottom: 30px;
}

.coin {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Flip Trigger */
.coin-wrapper:hover .coin {
    transform: rotateY(180deg);
}

/* Common Styles for Front and Back */
.coin-front, .coin-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hides the back side */
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #572e7d; /* Deep Purple Border */
    box-shadow: 0 0 20px rgba(87, 46, 125, 0.2);
}

.coin-front img, .coin-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rotate the back side initially so it's correct when flipped */
.coin-back {
    transform: rotateY(180deg);
}

/* --- Member Info Styling --- */
.member-info h3 {
    color: #572e7d;
    margin-bottom: 5px;
    font-size: 1.8rem;
    font-family: 'Merriweather', serif;
}

.member-info .role {
    display: block;
    font-weight: 700;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.member-info p {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
    max-width: 850px;
    margin: 0 auto;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-header { padding: 80px 0; }
    .page-header h1 { font-size: 2.5rem; }
    
    .team-member { padding: 30px 20px; }
    .coin-wrapper { width: 180px; height: 180px; }
    
    .member-info h3 { font-size: 1.5rem; }
    .member-info p { font-size: 0.95rem; text-align: justify; }
}