/* Custom styles for TTMK Team Page (team.css) */

/* -------------------------------
   1. Team Section Base Styling
---------------------------------*/
.team {
    display: flex;
    flex-wrap: wrap;             /* wrap items into rows */
    justify-content: center;     /* center align horizontally */
    gap: 2rem;                   /* space between cards */
    background-color: #f9fafb;   /* Light gray */
    padding: 5rem 2rem;          /* spacing */
}

/* -------------------------------
   2. Team Card Styling
---------------------------------*/
.team .team-item {
    flex: 1 1 250px;             /* responsive width (min 250px) */
    max-width: 280px;            /* prevent too wide */
    position: relative;
    background-color: #ffffff;
    border-radius: 1rem;         /* rounded-xl */
    padding: 2rem 1.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Animation: vertical fade */
    opacity: 0;
    transform: translateY(80px);
    animation: verticalFade 0.8s ease forwards;
}

/* Staggered delays */
.team .team-item:nth-child(1) { animation-delay: 0.2s; }
.team .team-item:nth-child(2) { animation-delay: 0.4s; }
.team .team-item:nth-child(3) { animation-delay: 0.6s; }
.team .team-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes verticalFade {
    from { opacity: 0; transform: translateY(80px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hover lift */
.team .team-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* -------------------------------
   3. Team Image Styling
---------------------------------*/
.team .team-img {
    width: 160px;
    height: 160px;
    margin: 0 auto -50px auto;   /* overlap effect */
    border-radius: 50%;
    border: 5px dotted #2563eb;  /* Tailwind blue */
    padding: 5px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.team .team-item:hover .team-img {
    border-color: #ffffff;
    background: transparent;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.team .team-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team .team-item:hover .team-img img {
    transform: scale(1.08);
}


.team .team-img-aria {
    width: 160px;
    height: 156px;
    margin: 0 auto -50px auto;   /* overlap effect */
    border-radius: 50%;
    border: 5px dotted #2563eb;  /* Tailwind blue */
    padding: 5px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

/* -------------------------------
   4. Team Title & Role
---------------------------------*/
.team .team-title {
    margin-top: 70px;
}

.team .team-title h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.team .team-title p {
    font-size: 0.95rem;
    color: #6b7280; /* gray */
    transition: color 0.3s ease;
}

.team .team-item:hover .team-title h4,
.team .team-item:hover .team-title p {
    color: #2563eb; /* highlight */
}

/* -------------------------------
   5. Social Icons
---------------------------------*/
.team .team-icon {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
}

.team .team-icon a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.team .team-icon a:hover {
    background: #1e40af;
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* -------------------------------
   6. Responsive (Mobile)
---------------------------------*/
@media (max-width: 768px) {
    .team {
        flex-direction: column;
        align-items: center;
        padding: 3rem 1rem;
    }
    .team .team-item {
        opacity: 1;
        animation: none;
        margin-bottom: 2rem;
    }
    .team .team-img {
        width: 120px;
        height: 120px;
    }
}
