/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    margin: 50px 0;
    font-size: 2.5em;
    color: #333;
}

.team-section {
    padding: 50px 0;
    background-color: #ffffff;
}

.back {
    font-size: 20px;
    color: rgb(13, 13, 13);
    padding-right: 80%;
}
.back a {
    text-decoration: none;
    display: inline-block;
    padding: 8px 16px;
}
.back a:hover {
    background-color: rgba(197, 41, 41, 0.801);
    color: rgb(0, 0, 0);
}

/* Team Container */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

/* Team Member */
.team-member {
    background-color: #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 30px;
    cursor: pointer;
}

/* Hover Effect */
.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Member Info */
.member-info h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.member-info p {
    color: #555;
    line-height: 1.6;
}

.member-info a {
    color: tomato;
}

.member-info a:hover {
    color: tomato;
}

.member-info a i {
    color: tomato;
}

/* Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.team-member:nth-child(1) {
    animation-delay: 0.1s;
}

.team-member:nth-child(2) {
    animation-delay: 0.2s;
}

.team-member:nth-child(3) {
    animation-delay: 0.3s;
}

.team-member:nth-child(4) {
    animation-delay: 0.4s;
}

.team-member:nth-child(5) {
    animation-delay: 0.5s;
}

.team-member:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-container {
        flex-direction: column;
        align-items: center;
    }
}
