/* WTP Teams Responsive Styling */

.wtp-team-wrapper {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.wtp-team-wrapper * {
    box-sizing: border-box;
}

.wtp-team-member {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: none !important; /* Removed box shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100% !important;
}

.wtp-team-member:hover {
    transform: none !important; /* Removed hover translate offset */
    box-shadow: none !important;
}

.wtp-member-image-container {
    overflow: hidden;
    background-color: #f9fafb;
}

.wtp-member-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wtp-team-member:hover .wtp-member-image {
    transform: scale(1.05);
}

.wtp-member-name {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.wtp-member-role {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #258BE0; /* Changed style to brand color matching button themes */
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wtp-member-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

.wtp-member-description p {
    margin: 0 0 10px 0;
}

.wtp-member-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   STYLE 1: Image Left, Text Right (Row List Layout)
   ========================================================================== */
.wtp-team-style-1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wtp-team-member.style-1 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 0; /* Handled by gap */
}

.wtp-team-member.style-1 .wtp-member-image-container {
    flex: 0 0 180px;
    width: 180px;
    height: 180px;
    border-radius: 10px;
}

.wtp-team-member.style-1 .wtp-member-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ==========================================================================
   STYLE 2: Image Top, Text Bottom (Centered Card Grid Layout)
   ========================================================================== */
.wtp-team-style-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.wtp-team-member.style-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0; /* Handled by grid gap */
    padding: 30px 24px;
}

.wtp-team-member.style-2 .wtp-member-image-container {
    width: 140px;
    height: 140px;
    border-radius: 50%; /* Circle design */
    margin-bottom: 20px;
    border: 3px solid #f3f4f6;
    box-shadow: none !important; /* Removed box shadow */
}

.wtp-team-member.style-2 .wtp-member-details {
    width: 100%;
}


/* ==========================================================================
   STYLE 3: Image Right, Text Left (Reverse Row Layout)
   ========================================================================== */
.wtp-team-style-3 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wtp-team-member.style-3 {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 0; /* Handled by gap */
}

.wtp-team-member.style-3 .wtp-member-image-container {
    flex: 0 0 180px;
    width: 180px;
    height: 180px;
    border-radius: 10px;
}

.wtp-team-member.style-3 .wtp-member-details {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ==========================================================================
   STYLE 4: Standard Row Layout, Center Aligned (No box-shadow, custom bottom border option)
   ========================================================================== */
.wtp-team-style-4 {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100% !important;
}

.wtp-team-member.style-4 {
    display: flex;
    flex-direction: row;
    align-items: center !important;
    gap: 32px;
    background: transparent !important;
    border: none !important;
    border-radius: 0px !important;
    padding: 24px 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
}

.wtp-team-member.style-4 .wtp-member-image-container {
    flex: 0 0 280px;
    width: 280px;
    height: 280px;
    border-radius: 8px;
}

.wtp-team-member.style-4 .wtp-member-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* Optional border-bottom (adds border-bottom to each member except the last one) */
.wtp-team-border-bottom-enabled .wtp-team-member.style-4:not(:last-child) {
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 30px !important;
}


/* ==========================================================================
   STYLE 5: Same as Style 4 but Full-Width Responsive Image on Mobile
   ========================================================================== */
.wtp-team-style-5 {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100% !important;
}

.wtp-team-member.style-5 {
    display: flex;
    flex-direction: row;
    align-items: center !important;
    gap: 32px;
    background: transparent !important;
    border: none !important;
    border-radius: 0px !important;
    padding: 24px 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
}

.wtp-team-member.style-5 .wtp-member-image-container {
    flex: 0 0 280px;
    width: 280px;
    height: 280px;
    border-radius: 8px;
}

.wtp-team-member.style-5 .wtp-member-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* Optional border-bottom for Style 5 */
.wtp-team-border-bottom-enabled .wtp-team-member.style-5:not(:last-child) {
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 30px !important;
}


/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Tablet & Mobile Breakpoint for Style 1 and Style 3 */
@media screen and (max-width: 768px) {
    .wtp-team-member.style-1,
    .wtp-team-member.style-3 {
        flex-direction: column; /* Stack vertically */
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }

    .wtp-team-member.style-1 .wtp-member-image-container,
    .wtp-team-member.style-3 .wtp-member-image-container {
        flex: 0 0 160px;
        width: 160px;
        height: 160px;
    }

    .wtp-team-member.style-3 .wtp-member-details {
        text-align: center;
    }
}

/* Tablet & Mobile Breakpoint for Style 4 */
@media screen and (max-width: 768px) {
    .wtp-team-member.style-4 {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 20px !important;
        padding: 20px 0 !important;
    }

    .wtp-team-member.style-4 .wtp-member-image-container {
        flex: 0 0 200px !important;
        width: 200px !important;
        height: 200px !important;
    }

    .wtp-team-member.style-4 .wtp-member-details {
        text-align: left !important;
    }

    .wtp-team-border-bottom-enabled .wtp-team-member.style-4:not(:last-child) {
        padding-bottom: 25px !important;
    }
}

/* Tablet & Mobile Breakpoint for Style 5 (Full-Width Responsive Image) */
@media screen and (max-width: 768px) {
    .wtp-team-member.style-5 {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 20px !important;
        padding: 20px 0 !important;
    }

    .wtp-team-member.style-5 .wtp-member-image-container {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
        overflow: hidden;
    }

    .wtp-team-member.style-5 .wtp-member-image {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
        object-fit: cover;
    }

    .wtp-team-member.style-5 .wtp-member-details {
        text-align: left !important;
    }

    .wtp-team-border-bottom-enabled .wtp-team-member.style-5:not(:last-child) {
        padding-bottom: 25px !important;
    }
}

/* Small Mobile Breakpoint (adapt spacing for compact screens) */
@media screen and (max-width: 480px) {
    .wtp-team-member {
        padding: 20px 16px;
    }

    .wtp-team-style-2 {
        grid-template-columns: 1fr; /* Single column card grid */
    }

    .wtp-member-name {
        font-size: 1.25rem;
    }

    .wtp-member-role {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .wtp-member-description {
        font-size: 0.9rem;
    }
}
