.teams-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 600px;
}

.team-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.team-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: height 0.4s ease;
}

.team-card:hover .team-image {
    height: 25%;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.8);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
    filter: brightness(1);
}

.team-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: opacity 0.4s ease;
}

.team-title::after{
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--header-link-color);
    margin-top: 10px;
}

.team-card:hover .team-title {
    opacity: 0;
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: #fff;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    height: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card:hover .team-info {
    transform: translateY(0);
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--h2-text-color);
    font-weight: 600;
}

.team-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.team-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stat {
    font-size: 0.9rem;
    color: var(--header-link-color);
    font-weight: 500;
}

.show-more-card {
    background: var(--header-link-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: span 1;
    width: 100%;
    justify-self: center;
}

.show-more-card:hover {
    background: var(--button-hover-color);
}

.show-more-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-more-content {
    text-align: center;
    color: #fff;
}

.show-more-icon {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.show-more-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 600;
}

.show-more-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}
