/* Team Section */
.team-section {
    background-color: rgba(0, 43, 91, 0.4);
    padding: 80px 20px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.team-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.team-section h2 {
    font-size: 2.4rem;
    text-align: center;
    color: #00d4ff;
    margin-bottom: 2rem;
}

/* Team member row layout */
.team-member {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Alternate layout: image on right */
.team-member.reverse {
    flex-direction: row-reverse;
}

/* Circular photo with soft glow (larger size) */
.team-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow:
      0 0 15px rgba(0, 217, 255, 0.3),
      0 0 30px rgba(0, 217, 255, 0.2);
}

/* Team info block */
.team-info {
    flex: 1;
    color: #dff6ff;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
}

/* Text alignment for reversed members */
.team-member.reverse .team-info {
    text-align: right;
}

.team-info h3 {
    margin: 0 0 5px;
    color: #00d4ff;
    font-size: 1.6rem;
}

.team-info h4 {
    margin: 0 0 15px;
    color: #87cefa;
    font-weight: normal;
    font-size: 1.1rem;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .team-section {
        padding: 50px 15px;
        margin-bottom: 30px;
    }

    .team-section h2 {
        font-size: 2rem;
    }

    .team-member,
    .team-member.reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-info {
        margin-top: 20px;
        text-align: center !important; /* Override left/right on mobile */
    }

    .team-photo {
        width: 160px;
        height: 160px;
    }
}
