/* ========== Global Reset ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ========== Team Section Styling ========== */
.team-section-dynamic {
    text-align: center;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-section-dynamic .section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    letter-spacing: 1px;
}

.team-section-dynamic .section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: #3498db;
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
}

.team-section-dynamic .team-container-dynamic {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

/* ========== Member Card Styling ========== */
.team-section-dynamic .member-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease-in-out;
    width: 250px;
}

/* Hover Effect */
.team-section-dynamic .member-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.team-section-dynamic .member-photo-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-section-dynamic .member-card:hover .member-photo-container {
    transform: rotate(5deg);
}

.team-section-dynamic .member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.team-section-dynamic .member-card:hover .member-photo {
    transform: scale(1.1);
}

.team-section-dynamic .member-name {
    font-size: 1.6rem;
    margin: 10px 0 5px;
    color: #2c3e50;
    font-weight: 600;
}

.team-section-dynamic .member-position {
    font-size: 1rem;
    color: #3498db;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .team-section-dynamic .team-container-dynamic {
        flex-direction: column;
        align-items: center;
    }
}
