/**
 * ATS Team Cards Styles
 */

.ats-team-cards-container {
    width: 100%;
}

.ats-team-cards-grid {
    display: grid;
    width: 100%;
}

.ats-team-card {
    position: relative;
    overflow: hidden;
}

.ats-team-card-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: 0 !important; /* Hide the inline background on the div itself */
}

/* Create a pseudo-element for the actual background image that will zoom */
.ats-team-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image); /* Use CSS variable instead of inherit for Safari/iOS compatibility */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
    z-index: 0;
}

/* Zoom only the background pseudo-element on hover */
.ats-team-card:hover .ats-team-card-image::after {
    transform: scale(1.08);
}

/* Gradient overlay - positioned above the background but below text */
.ats-team-card-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Text info - positioned above everything */
.ats-team-card-info {
    position: relative;
    z-index: 2;
}

.ats-team-card-name {
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
}

.ats-team-card-position {
    margin: 0;
    text-transform: uppercase;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .ats-team-cards-grid[data-columns-tablet] {
        grid-template-columns: repeat(var(--columns-tablet, 2), 1fr) !important;
    }
}

@media (max-width: 767px) {
    .ats-team-cards-grid[data-columns-mobile] {
        grid-template-columns: repeat(var(--columns-mobile, 1), 1fr) !important;
    }
}
