/* Team Block Styles */
.zolar-team-block {
    position: relative !important;
    padding: 80px 0;
    /* Topographic background */
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='topo' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 100c10-20 40-20 50 0 10 20 40 20 50 0M0 50c10-20 40-20 50 0 10 20 40 20 50 0M0 0c10-20 40-20 50 0 10 20 40 20 50 0' fill='none' stroke='%23f0f0f0' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23topo)'/%3E%3C/svg%3E");
    background-size: cover;
    
    /* Modern bulletproof full bleed for Elementor */
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
}
.zolar-team-container {
    width: 100%;
}

.zolar-team-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #161616;
    margin-bottom: 50px;
    font-family: inherit;
}

.zolar-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.zolar-team-card {
    background-color: #f6fcf8; /* Soft green */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.6s ease !important;
    display: flex;
    flex-direction: column;
}

.zolar-team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.zolar-team-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.zolar-team-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.6s ease !important;
    pointer-events: none;
}

.zolar-team-card:hover .zolar-team-image::after {
    opacity: 1;
}

.zolar-team-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center;
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
    transition: transform 0.6s ease, filter 0.6s ease, -webkit-filter 0.6s ease !important;
}

.zolar-team-card:hover .zolar-team-image img {
    transform: scale(1.05);
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.zolar-team-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.zolar-team-name {
    font-size: 29px;
    font-weight: 600;
    color: #161616;
    margin: 0 0 8px 0;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 36px;
}

.zolar-team-role {
    font-size: 16px;
    color: rgba(22, 22, 22, 0.6);
    margin: 0 0 25px 0;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    line-height: 26px;
}

.zolar-team-divider {
    border: none;
    height: 1px;
    background-color: rgba(0,0,0,0.06);
    margin: 0 0 20px 0;
    width: 100%;
}

.zolar-team-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 15px;
}

.zolar-team-socials {
    display: flex;
    gap: 10px;
}

.zolar-team-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border-radius: 50%;
    color: #161616;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.zolar-team-socials a svg {
    width: 18px;
    height: 18px;
}

.zolar-team-socials a:hover {
    background-color: var(--zolar-accent, #c8e86b);
    color: #161616;
}

.zolar-team-more {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    color: #161616;
    text-decoration: none;
    transition: color 0.3s ease !important;
}

.zolar-team-more:hover {
    color: var(--zolar-accent, #c8e86b);
}

.zolar-team-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #161616;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.zolar-team-arrow svg {
    width: 16px;
    height: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover effects when hovering the whole card */
.zolar-team-card:hover .zolar-team-more {
    color: var(--zolar-accent, #c8e86b);
}

.zolar-team-card:hover .zolar-team-arrow {
    transform: translate(3px, -3px);
    background-color: var(--zolar-accent, #c8e86b);
    color: #161616;
}

/* Responsive */
@media (max-width: 1200px) {
    .zolar-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .zolar-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .zolar-team-grid {
        grid-template-columns: 1fr;
    }
    .zolar-team-title {
        font-size: 36px;
    }
}
