/* Team Layout 2 Styles */
.pxl-team-layout2 .pxl-grid-inner {
    margin: 0 -30px !important;
}

.pxl-team-layout2 .pxl-grid-item {
    padding: 0 30px 60px !important;
}

.pxl-team-layout2 .pxl-item--inner {
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
}

.pxl-team-layout2 .pxl-item--wrap {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding-left: 250px;
    /* Space for content overlap */
    transition: all 0.3s ease;
}

.pxl-team-layout2 .pxl-item--image {
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 20px;
}

.pxl-team-layout2 .pxl-item--image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pxl-team-layout2 .pxl-item--inner:hover .pxl-item--image img {
    transform: scale(1.1);
}

.pxl-team-layout2 .pxl-item--content {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 290px;
    z-index: 10;
    background: #fff;
    padding: 24px 18px;
    box-shadow: 25px 0 60px rgba(0, 0, 0, 0.06);
    border: none;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.pxl-team-layout2 .pxl-item--inner:hover .pxl-item--content {
    box-shadow: 30px 0 70px rgba(0, 0, 0, 0.1);
}

.pxl-team-layout2 .pxl-item--title {
    font-size: 19px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.pxl-team-layout2 .pxl-item--title a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.pxl-team-layout2 .pxl-item--title a:hover {
    color: #666;
}

.pxl-team-layout2 .pxl-item--position {
    font-size: 14px;
    font-style: italic;
    color: #888;
    margin-bottom: 25px;
    display: block;
}

.pxl-team-layout2 .pxl-item--social {
    display: flex;
    gap: 18px;
    border-top: 1px solid #f2f2f2;
    padding-top: 25px;
}

.pxl-team-layout2 .pxl-item--social a {
    color: #222;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.pxl-team-layout2 .pxl-item--social a:hover {
    color: #888;
    transform: translateY(-3px);
}

.pxl-team-layout2 .pxl-item--link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Background Pattern (Dots) */
.pxl-team-layout2 .pxl-item--bg-pattern {
    position: absolute;
    left: 200px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 160px;
    background-image: radial-gradient(circle, #e0e0e0 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    z-index: 0;
}

.pxl-team-layout2 .pxl-item--content {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    z-index: 10;
    background: #fff;
    padding: 40px 30px;
    box-shadow: 15px 0 45px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pxl-team-layout2 .pxl-item--inner:hover .pxl-item--content {
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-52%);
}

.pxl-team-layout2 .pxl-item--title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
    color: #1a1a1a;
}

.pxl-team-layout2 .pxl-item--position {
    font-size: 13px;
    font-style: italic;
    color: #999;
    margin-bottom: 25px;
    display: block;
    font-family: inherit;
}

.pxl-team-layout2 .pxl-item--social {
    display: flex;
    gap: 20px;
    padding-top: 0;
    border-top: none;
}

.pxl-team-layout2 .pxl-item--social a {
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pxl-team-layout2 .pxl-item--social a:hover {
    color: #000;
    transform: scale(1.2);
}

.pxl-team-layout2 .pxl-item--image {
    width: calc(100% - 40px);
    margin-left: auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 1199px) {
    .pxl-team-layout2 .pxl-item--wrap {
        padding-left: 80px;
    }

    .pxl-team-layout2 .pxl-item--content {
        width: 250px;
        padding: 35px 25px;
    }
}

@media screen and (max-width: 991px) {
    .pxl-team-layout2 .pxl-item--wrap {
        padding-left: 0;
        flex-direction: column;
    }

    .pxl-team-layout2 .pxl-item--image {
        width: 100%;
    }

    .pxl-team-layout2 .pxl-item--content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 80%;
        margin: -50px auto 0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .pxl-team-layout2 .pxl-item--social {
        justify-content: center;
    }

    .pxl-team-layout2 .pxl-item--bg-pattern {
        display: block;
    }
}