 .modernpress-team-layout-1 {
        padding: 20px;
    }

    .modernpress-team-layout-1 .team-grid {
        display: grid;
        grid-template-columns: repeat(var(--columns), 1fr);
        gap: var(--gap);
    }

    .modernpress-team-layout-1 .team-member {
        position: relative;
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease;
    }

    .modernpress-team-layout-1 .team-member:hover {
        transform: translateY(-5px);
    }

    .modernpress-team-layout-1 .member-inner {
        position: relative;
    }

    .modernpress-team-layout-1 .member-image-wrapper {
        position: relative;
        padding-bottom: 100%;
        overflow: hidden;
    }

    .modernpress-team-layout-1 .member-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .modernpress-team-layout-1 .member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .modernpress-team-layout-1 .member-overlay {

        width: 100%;
        height: 100%;
        opacity: 1;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .modernpress-team-layout-1 .team-member:hover .member-image img {
        transform: scale(1.1);
    }

    .modernpress-team-layout-1 .member-social {
        display: flex;
        gap: 15px;
        opacity: 1;
        transition: all 0.3s ease 0.1s;
    }

    /* 
    .modernpress-team-layout-1 .team-member:hover .member-social {
        transform: translateY(0);
        opacity: 1;
    } */

    .modernpress-team-layout-1 .social-link {
        width: 40px;
        height: 40px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        transition: all 0.3s ease;
    }

    .modernpress-team-layout-1 .social-link:hover {
        background: #DCE1EB;
        transform: translateY(-3px);
    }

    .modernpress-team-layout-1 .member-content {
        padding: 25px;
        text-align: center;
    }

    .modernpress-team-layout-1 .member-name {
        font-size: 20px;
        font-weight: 500;
        line-height: 28PX;
        color: #333;
        margin: 0 0 5px;
    }

    .modernpress-team-layout-1 .member-position {
        font-size: 16px;
        font-weight: 500;
        line-height: 22px;
        color: #0D3FB0;
        display: block;
        margin-bottom: 15px;
    }

    .modernpress-team-layout-1 .member-bio {
        font-size: 15px;
        line-height: 1.6;
        color: #666;
        margin-bottom: 10px;
    }

    .modernpress-team-layout-1 .member-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: #f8f9fa;
        color: #333;
        border-radius: 25px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .modernpress-team-layout-1 .member-link:hover {
        background: #0C20E1;
        color: white;
        transform: translateY(-2px);
    }

    .modernpress-team-layout-1 .member-link:hover svg {
        transform: translateX(3px);
    }

    .modernpress-team-layout-1 .member-link svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }

    /* Loading Animation */
    .modernpress-team-layout-1 .team-member {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Add animation delay for each member */
    .modernpress-team-layout-1 .team-member:nth-child(2) {
        animation-delay: 0.2s;
    }

    .modernpress-team-layout-1 .team-member:nth-child(3) {
        animation-delay: 0.3s;
    }

    .modernpress-team-layout-1 .team-member:nth-child(4) {
        animation-delay: 0.4s;
    }

    /* Responsive Styles */
    @media (max-width: 1200px) {
        .modernpress-team-layout-1 .team-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 992px) {
        .modernpress-team-layout-1 .team-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .modernpress-team-layout-1 {
            padding: 10px;
        }

        .modernpress-team-layout-1 .team-grid {
            grid-template-columns: 1fr;
        }

        .modernpress-team-layout-1 .member-content {
            padding: 20px;
        }

        .modernpress-team-layout-1 .member-name {
            font-size: 18px;
        }
    }

    /* Prefers Reduced Motion */
    @media (prefers-reduced-motion: reduce) {
        .modernpress-team-layout-1 * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }

    /*Team Widget Layout 2 css */

    .modernpress-team-layout-2 {
        padding: 20px;
    }

    .modernpress-team-layout-2 .team-grid {
        display: grid;
        grid-template-columns: repeat(var(--columns), 1fr);
        gap: var(--gap);
    }

    .modernpress-team-layout-2 .team-member {
        text-align: center;
    }

    .modernpress-team-layout-2 .member-circle {
        position: relative;
        /* width: 12.25em; */
        /* height: 12.25em; */
        margin: 0 auto;
        border-radius: 80%;
        overflow: hidden;
    }

    .modernpress-team-layout-2 .member-image {
        width: 100%;
        height: 100%;
    }

    .modernpress-team-layout-2 .member-image img {
        width: 100%;
        height: 100%;
        border-radius: circle;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .modernpress-team-layout-2 .member-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.64);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modernpress-team-layout-2 .member-content {
        padding: 20px;
        color: white;
        transform: translateY(20px);
        transition: transform 0.3s ease;
    }

    .modernpress-team-layout-2 .member-name {
        font-size: 20px;
        font-weight: 500;
        line-height: 28px;
        margin: 0 0 5px;
        color: #fff;
    }

    .modernpress-team-layout-2 .member-position {
        font-size: 16px;
        font-weight: 500;
        line-height: 22px;
        opacity: 0.8;
        display: block;
        margin-bottom: 15px;
    }

    .modernpress-team-layout-2 .member-social {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }

    .modernpress-team-layout-2 .social-link {
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: all 0.3s ease;
    }

    .modernpress-team-layout-2 .social-link svg {
        width: 18px;
        height: 18px;
    }

    /* Hover Effects */
    .modernpress-team-layout-2 .member-circle:hover .member-overlay {
        opacity: 1;
    }

    .modernpress-team-layout-2 .member-circle:hover .member-content {
        transform: translateY(0);
    }

    .modernpress-team-layout-2 .member-circle:hover .member-image img {
        transform: scale(1.1);
    }

    .modernpress-team-layout-2 .social-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
    }

    /* Responsive Styles */
    @media (max-width: 1200px) {
        .modernpress-team-layout-2 .team-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 992px) {
        .modernpress-team-layout-2 .team-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .modernpress-team-layout-2 .team-grid {
            grid-template-columns: 1fr;
        }

        .modernpress-team-layout-2 .member-circle {
            width: 200px;
            height: 200px;
        }
    }

    /* Accessibility */
    @media (prefers-reduced-motion: reduce) {
        .modernpress-team-layout-2 * {
            transition-duration: 0.01ms !important;
        }
    }

    /* Team widget layout 3 css */

    .modernpress-team-layout-3 {
        width: 100%;
        box-sizing: border-box;
    }

    .modernpress-team-layout-3 *,
    .modernpress-team-layout-3 *::before,
    .modernpress-team-layout-3 *::after {
        box-sizing: border-box;
    }

    .modernpress-team-layout-3 .team-grid {
        display: grid;
        grid-template-columns: repeat(var(--columns), 1fr);
        /* gap: 20px; */
    }

    .modernpress-team-layout-3 .team-member {
        position: relative;
        width: 100%;
        /* Fixed height instead of aspect-ratio to prevent overflow */
        height: 350px;
        /* margin-bottom: 20px; */
    }

    .modernpress-team-layout-3 .member-image {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .modernpress-team-layout-3 .member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(100%);
        transition: filter 0.3s ease;
    }

    .modernpress-team-layout-3 .team-member:hover .member-image img {
        filter: none;
    }

    .modernpress-team-layout-3 .member-overlay {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        /* Fixed height to ensure consistency */
        height: auto;
        max-height: 90%;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        /* Added these to prevent overflow */
        overflow: hidden;
        padding: 15px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .modernpress-team-layout-3 .member-content {
        text-align: center;
        color: #000;
        padding: 15px;
        transform: translateY(20px);
        transition: transform 0.3s ease;
        width: 100%;
    }

    .modernpress-team-layout-3 .member-name {
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 8px;
        line-height: 22px;
        color: #000;
    }

    .modernpress-team-layout-3 .member-position {
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        display: block;
        margin-bottom: 15px;
        opacity: 0.9;
        color: #0D3FB0;
    }

    .modernpress-team-layout-3 .member-social {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .modernpress-team-layout-3 .social-link {
        width: 36px;
        height: 36px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        transition: all 0.3s ease;
        border: 1px solid #eee;
    }

    .modernpress-team-layout-3 .social-link svg {
        width: 18px;
        height: 18px;
    }

    /* Hover Effects */
    .modernpress-team-layout-3 .team-member:hover .member-overlay {
        opacity: 1;
    }

    .modernpress-team-layout-3 .team-member:hover .member-content {
        transform: translateY(0);
    }

    .modernpress-team-layout-3 .social-link:hover {
        transform: translateY(-3px);
        background: #f0f0f0;
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .modernpress-team-layout-3 .team-grid {
            grid-template-columns: repeat(3, 1fr);
            /* gap: 15px; */
        }

        .modernpress-team-layout-3 .team-member {
            height: 320px;
        }
    }

    @media (max-width: 992px) {
        .modernpress-team-layout-3 .team-grid {
            grid-template-columns: repeat(2, 1fr);
            /* gap: 15px; */
        }

        .modernpress-team-layout-3 .team-member {
            height: 300px;
        }
    }

    @media (max-width: 576px) {
        .modernpress-team-layout-3 .team-grid {
            grid-template-columns: 1fr;
        }

        .modernpress-team-layout-3 .team-member {
            height: 400px;
            /* margin-bottom: 15px; */
        }

        .modernpress-team-layout-3 .member-overlay {
            width: 85%;
        }
    }

    /* Accessibility */
    @media (prefers-reduced-motion: reduce) {
        .modernpress-team-layout-3 * {
            transition-duration: 0.01ms !important;
        }
    }

    /* team widget layout 4 css */

    .modernpress-team-layout-4 {
        padding: 20px;
    }

    .modernpress-team-layout-4 .team-grid {
        display: grid;
        grid-template-columns: repeat(var(--columns), 1fr);
        gap: var(--gap);
    }

    .modernpress-team-layout-4 .team-member {
        text-align: center;
    }

    .modernpress-team-layout-4 .member-circle {
        position: relative;
        /* width: 250px; */
        /* height: 250px; */
        margin: 0 auto;
        border-radius: 50%;
        overflow: hidden;
    }

    .modernpress-team-layout-4 .member-image {
        width: 100%;
        height: 100%;
    }

    .modernpress-team-layout-4 .member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .modernpress-team-layout-4 .member-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #0D3FB0;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        border: 10px solid rgba(13, 62, 176, 0.16);
        border-radius: 50%;
    }

    .modernpress-team-layout-4 .member-content {
        padding: 20px;
        color: white;
        transform: translateY(20px);
        transition: transform 0.3s ease;
    }

    .modernpress-team-layout-4 .member-name {
        font-size: 18px;
        font-weight: 500;
        line-height: 28px;
        margin: 0 0 5px;
        color: #fff;
    }

    .modernpress-team-layout-4 .member-position {
        font-size: 16px;
        font-weight: 500;
        line-height: 22px;
        opacity: 0.8;
        display: block;
        margin-bottom: 15px;
    }

    .modernpress-team-layout-4 .member-social {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }

    .modernpress-team-layout-4 .social-link {
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: all 0.3s ease;
    }

    .modernpress-team-layout-4 .social-link svg {
        width: 18px;
        height: 18px;
    }

    /* Hover Effects */
    .modernpress-team-layout-4 .member-circle:hover {
        opacity: 1;
        border: 10px solid rgba(13, 62, 176, 0.16);
        border-radius: 50%;
    }

    .modernpress-team-layout-4 .member-circle:hover .member-overlay {
        opacity: 1;
    }

    .modernpress-team-layout-4 .member-circle:hover .member-content {
        transform: translateY(0);
    }

    .modernpress-team-layout-4 .member-circle:hover .member-image img {
        transform: scale(1.1);
    }

    .modernpress-team-layout-4 .social-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
    }

    /* Responsive Styles */
    @media (max-width: 1200px) {
        .modernpress-team-layout-4 .team-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 992px) {
        .modernpress-team-layout-4 .team-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .modernpress-team-layout-4 .team-grid {
            grid-template-columns: 1fr;
        }

        .modernpress-team-layout-4 .member-circle {
            width: 200px;
            height: 200px;
        }
    }

    /* Accessibility */
    @media (prefers-reduced-motion: reduce) {
        .modernpress-team-layout-4 * {
            transition-duration: 0.01ms !important;
        }
    }

    /* team widget layout 5 css */

    .modernpress-team-layout-5 {
        padding: 20px;
    }

    .modernpress-team-layout-5 .team-grid {
        display: grid;
        grid-template-columns: repeat(var(--columns), 1fr);
        gap: var(--gap);
    }

    .modernpress-team-layout-5 .team-member {
        text-align: center;
    }

    .modernpress-team-layout-5 .member-circle {
        position: relative;
        /* width: 250px; */
        /* height: 250px; */
        margin: 0 auto;
        /* border-radius: 50%; */
        overflow: hidden;
    }

    .modernpress-team-layout-5 .member-image {
        width: 100%;
        height: 100%;
    }

    .modernpress-team-layout-5 .member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .modernpress-team-layout-5 .member-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.64);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modernpress-team-layout-5 .member-content {
        padding: 20px;
        color: white;
        transform: translateY(20px);
        transition: transform 0.3s ease;
    }

    .modernpress-team-layout-5 .member-name {
        font-size: 20px;
        font-weight: 500;
        line-height: 28px;
        margin: 0 0 5px;
        color: #fff;
    }

    .modernpress-team-layout-5 .member-position {
        font-size: 16px;
        font-weight: 500;
        line-height: 22px;
        opacity: 0.8;
        display: block;
        margin-bottom: 15px;
    }

    .modernpress-team-layout-5 .member-social {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }

    .modernpress-team-layout-5 .social-link {
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: all 0.3s ease;
    }

    .modernpress-team-layout-5 .social-link svg {
        width: 18px;
        height: 18px;
    }

    /* Hover Effects */
    .modernpress-team-layout-5 .member-circle:hover .member-overlay {
        opacity: 1;
    }

    .modernpress-team-layout-5 .member-circle:hover .member-content {
        transform: translateY(0);
    }

    .modernpress-team-layout-5 .member-circle:hover .member-image img {
        transform: scale(1.1);
    }

    .modernpress-team-layout-5 .social-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
    }

    /* Responsive Styles */
    @media (max-width: 1200px) {
        .modernpress-team-layout-5 .team-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 992px) {
        .modernpress-team-layout-5 .team-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .modernpress-team-layout-5 .team-grid {
            grid-template-columns: 1fr;
        }

        .modernpress-team-layout-5 .member-circle {
            width: 200px;
            height: 200px;
        }
    }

    /* Accessibility */
    @media (prefers-reduced-motion: reduce) {
        .modernpress-team-layout-5 * {
            transition-duration: 0.01ms !important;
        }
    }

    /* team widget layout 6 css */

    .modernpress-team-layout-6 {
        padding: 20px;
    }

    .modernpress-team-layout-6 .team-grid {
        display: grid;
        grid-template-columns: repeat(var(--columns), 1fr);
        gap: var(--gap);
    }

    .modernpress-team-layout-6 .team-member {
        /* position: relative; */
        /* background: white; */
        overflow: hidden;

        transition: transform 0.3s ease;
        padding-top: 125px;
    }

    .modernpress-team-layout-6 .team-member:hover {
        transform: translateY(-5px);
    }

    .modernpress-team-layout-6 .member-inner {
        position: relative;
    }

    .modernpress-team-layout-6 .member-image-wrapper {
        /* position: relative; */
        /* padding-bottom: 100%; */
        /* overflow: hidden; */
    }

    .modernpress-team-layout-6 .member-image {
        position: absolute;
        top: -55%;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .modernpress-team-layout-6 .member-image img {
        width: 100%;
        /* height: 85%; */
        object-fit: cover;
        transition: transform 0.5s ease;
        border-radius: 50% !important;
    }

    .modernpress-team-layout-6 .member-overlay {

        width: 100%;
        height: 100%;
        opacity: 1;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .modernpress-team-layout-6 .team-member:hover .member-image img {
        transform: scale(1.1);
    }

    .modernpress-team-layout-6 .member-social {
        display: flex;
        gap: 15px;
        opacity: 1;
        transition: all 0.3s ease 0.1s;
    }

    /* 
    .modernpress-team-layout-6 .team-member:hover .member-social {
        transform: translateY(0);
        opacity: 1;
    } */

    .modernpress-team-layout-6 .social-link {
        width: 40px;
        height: 40px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        transition: all 0.3s ease;
    }

    .modernpress-team-layout-6 .social-link:hover {
        background: #DCE1EB;
        transform: translateY(-3px);
    }

    .modernpress-team-layout-6 .member-content {
        position: relative;
        padding: 25px;
        text-align: center;
        padding-top: 100px;
        border-bottom: 3px solid #0D3FB0;
        border-left: 0.5px solid #DCE1EB;
        border-right: 0.5px solid #DCE1EB;
        border-top: 0.5px solid #DCE1EB;

    }

    .modernpress-team-layout-6 .member-name {
        font-size: 20px;
        font-weight: 500;
        line-height: 28PX;
        color: #333;
        margin: 0 0 5px;
    }

    .modernpress-team-layout-6 .member-position {
        font-size: 16px;
        font-weight: 500;
        line-height: 22px;
        color: #0D3FB0;
        display: block;
        margin-bottom: 15px;
    }

    .modernpress-team-layout-6 .member-bio {
        font-size: 15px;
        line-height: 1.6;
        color: #666;
        margin-bottom: 10px;
    }

    .modernpress-team-layout-6 .member-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: #f8f9fa;
        color: #333;
        border-radius: 25px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .modernpress-team-layout-6 .member-link:hover {
        background: #0C20E1;
        color: white;
        transform: translateY(-2px);
    }

    .modernpress-team-layout-6 .member-link:hover svg {
        transform: translateX(3px);
    }

    .modernpress-team-layout-6 .member-link svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }

    /* Loading Animation */
    .modernpress-team-layout-6 .team-member {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Add animation delay for each member */
    .modernpress-team-layout-6 .team-member:nth-child(2) {
        animation-delay: 0.2s;
    }

    .modernpress-team-layout-6 .team-member:nth-child(3) {
        animation-delay: 0.3s;
    }

    .modernpress-team-layout-6 .team-member:nth-child(4) {
        animation-delay: 0.4s;
    }

    /* Responsive Styles */
    @media (max-width: 1200px) {
        .modernpress-team-layout-6 .team-grid {
            grid-template-columns: repeat(4, 1fr);
        }

        .modernpress-team-layout-6 .member-image {
            position: absolute;
            top: -50%;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modernpress-team-layout-6 .team-member {
            /* position: relative; */
            /* background: white; */
            overflow: hidden;

            transition: transform 0.3s ease;
            padding-top: 100px;
        }
    }

    @media (max-width: 992px) {
        .modernpress-team-layout-6 .team-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .modernpress-team-layout-6 .member-image {
            position: absolute;
            top: -60%;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modernpress-team-layout-6 .team-member {
            /* position: relative; */
            /* background: white; */
            overflow: hidden;

            transition: transform 0.3s ease;
            padding-top: 150px;
        }

    }

    @media (max-width: 850px) {

        .modernpress-team-layout-6 .member-image {
            position: absolute;
            top: -50%;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modernpress-team-layout-6 .team-member {
            /* position: relative; */
            /* background: white; */
            overflow: hidden;

            transition: transform 0.3s ease;
            padding-top: 100px;
        }

    }

    @media (max-width: 650px) {

        .modernpress-team-layout-6 .team-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .modernpress-team-layout-6 .member-image {
            position: absolute;
            top: -60%;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modernpress-team-layout-6 .team-member {
            /* position: relative; */
            /* background: white; */
            overflow: hidden;

            transition: transform 0.3s ease;
            padding-top: 140px;
        }

    }

    @media (max-width: 576px) {
        .modernpress-team-layout-6 .team-grid {
            grid-template-columns: repeat(1, 1fr);
        }

        .modernpress-team-layout-6 .member-image {
            position: absolute;
            top: -60%;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .modernpress-team-layout-6 .team-member {
            /* position: relative; */
            /* background: white; */
            overflow: hidden;

            transition: transform 0.3s ease;
            padding-top: 140px;
        }
    }

    /* Prefers Reduced Motion */
    @media (prefers-reduced-motion: reduce) {
        .modernpress-team-layout-6 * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }

    /* team widget layout 7 css  */

    .modernpress-team-layout-7 {
        padding: 20px;
    }

    .modernpress-team-layout-7 .team-grid {
        display: grid;
        grid-template-columns: repeat(var(--columns), 1fr);
        gap: var(--gap);
    }

    .modernpress-team-layout-7 .team-member {
        position: relative;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease;
    }

    .modernpress-team-layout-7 .team-member:hover {
        transform: translateY(-5px);
    }

    .modernpress-team-layout-7 .member-inner {
        position: relative;
    }

    .modernpress-team-layout-7 .member-image-wrapper {
        position: relative;
        padding-bottom: 100%;
        overflow: hidden;
    }

    .modernpress-team-layout-7 .member-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 32px;
    }

    .modernpress-team-layout-7 .member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        border-radius: 8px;
    }

    .modernpress-team-layout-7 .member-overlay {

        width: 100%;
        height: 100%;
        opacity: 1;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .modernpress-team-layout-7 .team-member:hover .member-image img {
        transform: scale(1.1);
    }

    .modernpress-team-layout-7 .member-social {
        display: flex;
        gap: 15px;
        opacity: 1;
        transition: all 0.3s ease 0.1s;
    }

    /* 
    .modernpress-team-layout-7 .team-member:hover .member-social {
        transform: translateY(0);
        opacity: 1;
    } */

    .modernpress-team-layout-7 .social-link {
        width: 40px;
        height: 40px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        transition: all 0.3s ease;
    }

    .modernpress-team-layout-7 .social-link:hover {
        background: #DCE1EB;
        transform: translateY(-3px);
    }

    .modernpress-team-layout-7 .member-content {
        padding: 32px;
        text-align: center;
        padding-top: 0px;
    }

    .modernpress-team-layout-7 .member-name {
        font-size: 18px;
        font-weight: 500;
        line-height: 28PX;
        color: #333;
        margin: 0 0 5px;
    }

    .modernpress-team-layout-7 .member-position {
        font-size: 16px;
        font-weight: 500;
        line-height: 22px;
        color: #0D3FB0;
        display: block;
        margin-bottom: 15px;
    }

    .modernpress-team-layout-7 .member-bio {
        font-size: 15px;
        line-height: 1.6;
        color: #666;
        margin-bottom: 10px;
    }

    .modernpress-team-layout-7 .member-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: #f8f9fa;
        color: #333;
        border-radius: 25px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .modernpress-team-layout-7 .member-link:hover {
        background: #0C20E1;
        color: white;
        transform: translateY(-2px);
    }

    .modernpress-team-layout-7 .member-link:hover svg {
        transform: translateX(3px);
    }

    .modernpress-team-layout-7 .member-link svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }

    /* Loading Animation */
    .modernpress-team-layout-7 .team-member {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Add animation delay for each member */
    .modernpress-team-layout-7 .team-member:nth-child(2) {
        animation-delay: 0.2s;
    }

    .modernpress-team-layout-7 .team-member:nth-child(3) {
        animation-delay: 0.3s;
    }

    .modernpress-team-layout-7 .team-member:nth-child(4) {
        animation-delay: 0.4s;
    }

    /* Responsive Styles */
    @media (max-width: 1200px) {
        .modernpress-team-layout-7 .team-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 992px) {
        .modernpress-team-layout-7 .team-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .modernpress-team-layout-7 {
            padding: 10px;
        }

        .modernpress-team-layout-7 .team-grid {
            grid-template-columns: 1fr;
        }

        .modernpress-team-layout-7 .member-content {
            padding: 20px;
        }

        .modernpress-team-layout-7 .member-name {
            font-size: 18px;
        }
    }

    /* Prefers Reduced Motion */
    @media (prefers-reduced-motion: reduce) {
        .modernpress-team-layout-7 * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }

    /* team widget layout 8 css  */

    .modernpress-team-layout-8 {
        padding: 20px;
    }

    .modernpress-team-layout-8 .team-grid {
        display: grid;
        grid-template-columns: repeat(var(--columns), 1fr);
        gap: var(--gap);
    }

    .modernpress-team-layout-8 .team-member {
        position: relative;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease;
    }

    .modernpress-team-layout-8 .team-member:hover {
        transform: translateY(-5px);
    }

    .modernpress-team-layout-8 .member-inner {
        position: relative;
    }

    .modernpress-team-layout-8 .member-image-wrapper {
        position: relative;
        padding-bottom: 100%;
        overflow: hidden;
    }

    .modernpress-team-layout-8 .member-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 32px;
    }

    .modernpress-team-layout-8 .member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        border-radius: 50% !important;
    }

    .modernpress-team-layout-8 .member-overlay {

        width: 100%;
        height: 100%;
        opacity: 1;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .modernpress-team-layout-8 .team-member:hover .member-image img {
        transform: scale(1.1);
    }

    .modernpress-team-layout-8 .member-social {
        display: flex;
        gap: 15px;
        opacity: 1;
        transition: all 0.3s ease 0.1s;
    }

    /* 
    .modernpress-team-layout-8 .team-member:hover .member-social {
        transform: translateY(0);
        opacity: 1;
    } */

    .modernpress-team-layout-8 .social-link {
        width: 40px;
        height: 40px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        transition: all 0.3s ease;
    }

    .modernpress-team-layout-8 .social-link:hover {
        background: #DCE1EB;
        transform: translateY(-3px);
    }

    .modernpress-team-layout-8 .member-content {
        padding: 32px;
        text-align: center;
        padding-top: 0px;
    }

    .modernpress-team-layout-8 .member-name {
        font-size: 18px;
        font-weight: 500;
        line-height: 28PX;
        color: #333;
        margin: 0 0 5px;
    }

    .modernpress-team-layout-8 .member-position {
        font-size: 16px;
        font-weight: 500;
        line-height: 22px;
        color: #0D3FB0;
        display: block;
        margin-bottom: 15px;
    }

    .modernpress-team-layout-8 .member-bio {
        font-size: 15px;
        line-height: 1.6;
        color: #666;
        margin-bottom: 10px;
    }

    .modernpress-team-layout-8 .member-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: #f8f9fa;
        color: #333;
        border-radius: 25px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .modernpress-team-layout-8 .member-link:hover {
        background: #0C20E1;
        color: white;
        transform: translateY(-2px);
    }

    .modernpress-team-layout-8 .member-link:hover svg {
        transform: translateX(3px);
    }

    .modernpress-team-layout-8 .member-link svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }

    /* Loading Animation */
    .modernpress-team-layout-8 .team-member {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Add animation delay for each member */
    .modernpress-team-layout-8 .team-member:nth-child(2) {
        animation-delay: 0.2s;
    }

    .modernpress-team-layout-8 .team-member:nth-child(3) {
        animation-delay: 0.3s;
    }

    .modernpress-team-layout-8 .team-member:nth-child(4) {
        animation-delay: 0.4s;
    }

    /* Responsive Styles */
    @media (max-width: 1200px) {
        .modernpress-team-layout-8 .team-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 992px) {
        .modernpress-team-layout-8 .team-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .modernpress-team-layout-8 {
            padding: 10px;
        }

        .modernpress-team-layout-8 .team-grid {
            grid-template-columns: 1fr;
        }

        .modernpress-team-layout-8 .member-content {
            padding: 20px;
        }

        .modernpress-team-layout-8 .member-name {
            font-size: 18px;
        }
    }

    /* Prefers Reduced Motion */
    @media (prefers-reduced-motion: reduce) {
        .modernpress-team-layout-8 * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }