/* Team Section */
.team {
    padding: 100px 0;
    background-color: #FFFFFF;
    color: #0B0B3B;
}

.team .container {
    max-width: 1200px;
}

.team-content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    align-items: start;
}

.team-header .section-title {
    color: #0B0B3B;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}

.all-experts-link {
    color: #0B0B3B; /* Dark by default */
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    transition: color 0.3s ease;
  }
  
  .all-experts-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  }
  
  .all-experts-link:hover {
    color: var(--secondary-color); /* Blue on hover */
  }
  
  .all-experts-link:hover::before {
    opacity: 0; /* Hide bracket */
  }
  
  .all-experts-link:hover::after {
    transform: scaleX(0); /* Hide underline */
  }

/* Base team grid styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
    max-width: 600px;
    margin: 0 auto;
}

.team-member {
    position: relative;
    cursor: pointer;
}

.team-member-content {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 2;
    background-color: var(--dark-bg);
    height: 400px;
}

.team-member:nth-child(odd):hover .team-member-content {
    transform: translateX(-15px) translateY(-15px);
    box-shadow: 0 0 0 12px var(--secondary-color), 0 8px 25px rgba(0,0,0,0.2);
}

.team-member:nth-child(even):hover .team-member-content {
    transform: translateX(15px) translateY(-15px);
    box-shadow: 0 0 0 12px var(--secondary-color), 0 8px 25px rgba(0,0,0,0.2);
}

.member-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease-in-out;
}

.team-member:hover .member-photo-img {
    filter: none;
}

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: #fff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.member-info h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.member-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .team-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-header {
        position: static;
        text-align: center;
    }

    .team-grid {
        gap: 30px 20px;
    }
}

@media (max-width: 767.98px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
} 