.tfc-team-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.tfc-page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
}

.tfc-page-title {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.tfc-page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    border-radius: 2px;
}

.tfc-page-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.tfc-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    perspective: 1000px;
}

.tfc-flip-card {
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.tfc-flip-card:hover .tfc-flip-card-front {
    transform: translateY(-5px);
}

.tfc-flip-card.flipped {
    transform: rotateY(180deg);
}

.tfc-flip-card-front, .tfc-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

/* Front Side Styling */
.tfc-flip-card-front {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tfc-member-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 25px;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.tfc-flip-card:hover .tfc-member-photo {
    transform: scale(1.05);
}

.tfc-member-name {
    margin-bottom: 10px;
}

.tfc-member-name h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 700;
}

.tfc-member-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    width: 100%;
}

.tfc-social-icons-front {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.tfc-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.tfc-social-icon:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
}

.tfc-flip-hint {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tfc-flip-hint i {
    font-size: 1.2rem;
    animation: tfc-bounce 2s infinite;
}

@keyframes tfc-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Back Side Styling */
.tfc-flip-card-back {
    background: #FDD831;
    color: white;
    padding: 35px 30px;
    transform: rotateY(180deg);
    overflow-y: auto;
}

.tfc-back-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tfc-back-header h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #fff;
}

.tfc-back-header .tfc-title {
    font-size: 1.1rem;
    color: #f39c12;
    font-weight: 600;
}

.tfc-member-details {
    line-height: 1.7;
    font-size: 1rem;
}

.tfc-member-details ul {
    list-style: none;
    padding: 0;
}

.tfc-member-details li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    text-align: left;
}

.tfc-member-details li::before {
    content: '•';
    color: #f39c12;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -3px;
}

.tfc-social-icons-back {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tfc-back-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Card Colors Variation */
.tfc-card-1 .tfc-flip-card-front { background: linear-gradient(145deg, #ffffff, #f8f9fa); }
.tfc-card-1 .tfc-member-title { color: #3498db; }

.tfc-card-2 .tfc-flip-card-front { background: linear-gradient(145deg, #ffffff, #f8f9fa); }
.tfc-card-2 .tfc-member-title { color: #2ecc71; }

.tfc-card-3 .tfc-flip-card-front { background: linear-gradient(145deg, #ffffff, #f8f9fa); }
.tfc-card-3 .tfc-member-title { color: #9b59b6; }

.tfc-card-4 .tfc-flip-card-front { background: linear-gradient(145deg, #ffffff, #f8f9fa); }
.tfc-card-4 .tfc-member-title { color: #e74c3c; }

.tfc-card-5 .tfc-flip-card-front { background: linear-gradient(145deg, #ffffff, #f8f9fa); }
.tfc-card-5 .tfc-member-title { color: #1abc9c; }

.tfc-card-6 .tfc-flip-card-front { background: linear-gradient(145deg, #ffffff, #f8f9fa); }
.tfc-card-6 .tfc-member-title { color: #f39c12; }

.tfc-card-7 .tfc-flip-card-front { background: linear-gradient(145deg, #ffffff, #f8f9fa); }
.tfc-card-7 .tfc-member-title { color: #34495e; }

/* Responsive Design */
@media (max-width: 1024px) {
    .tfc-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tfc-team-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 30px;
    }
    .tfc-team-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 40px;
    perspective: 1000px;
}
    .tfc-flip-card {
        height: 480px;
    }
    
    .tfc-page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .tfc-team-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tfc-flip-card {
        height: 460px;
    }
    
    .tfc-member-photo {
        width: 180px;
        height: 180px;
    }
}