/* =============================================
   Meet Our Team Slider
   Location: /wp-content/themes/child/slick/meet-our-team.css
============================================= */

.meet-team-wrapper {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.meet-team-card {
    background: #e9eff5;
    border-radius: 24px;
    padding: 50px;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* ── LEFT panel ─────────────────────────── */
.meet-team-left {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.meet-team-content-slider {
    width: 100%;
    overflow: hidden;
}

.meet-team-content-slider .slick-list {
    overflow: hidden;
    width: 100%;
}

.meet-team-content-slider .slick-track {
    display: flex;
}

.meet-team-content-slider .slick-slide {
    outline: none;
    min-width: 0;
    width: 100% !important;
    box-sizing: border-box;
}

.meet-team-slide {
    padding: 4px 2px;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.member-name {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px 0 !important;
    line-height: 1.2;
    word-wrap: break-word;
}

.member-role {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    word-wrap: break-word;
}

.role-underline {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #4338ca, #6366f1);
    border-radius: 4px;
    margin: 14px 0 20px;
}

.member-bio {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    margin: 0 0 28px 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    text-decoration: none !important;
    opacity: 0.5;
    transition: opacity 0.25s ease;
    margin-bottom: 0;
    margin-top: auto;
}

.linkedin-btn:hover {
    background: none;
    opacity: 1;
}

.linkedin-btn .linkedin-icon {
    display: block;
    width: 36px;
    height: 36px;
}

/* ── RIGHT panel ─────────────────────────── */
.meet-team-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    width: 110px;
    align-self: stretch;
}

.arrow-up,
.arrow-down {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    line-height: 1;
}

.arrow-up:hover,
.arrow-down:hover {
    color: #4338ca;
}

/* ── Thumb container ─────────────────────── */
.meet-team-thumb-slider {
    width: 100px;
}

/* ── STATIC MODE (≤ 3 members) ───────────── */
.meet-team-thumb-slider.mot-static-thumbs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    overflow: visible;
    width: auto;
}

.meet-team-thumb-slider.mot-static-thumbs .thumb-wrap {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0;
    cursor: pointer;
    outline: none;
}

/* ── SLICK MODE (> 3 members) ────────────── */
.meet-team-thumb-slider:not(.mot-static-thumbs) .slick-list {
    max-height: 330px;
    overflow: hidden;
}

.meet-team-thumb-slider:not(.mot-static-thumbs) .thumb-wrap {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    outline: none;
}

/* ── Thumb image ─────────────────────────── */
.thumb-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid transparent;
    filter: grayscale(100%);
    transition: filter 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Active - static mode */
.meet-team-thumb-slider.mot-static-thumbs .thumb-wrap.is-active .thumb-img {
    border-color: #4338ca;
    filter: grayscale(0%);
    transform: scale(1.07);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}

/* Active - slick mode */
.meet-team-thumb-slider:not(.mot-static-thumbs) .slick-current .thumb-img {
    border-color: #4338ca;
    filter: grayscale(0%);
    transform: scale(1.07);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}

/* Hover */
.thumb-wrap:hover .thumb-img {
    filter: grayscale(0%);
}

/* Hide default slick arrows/dots */
.meet-team-content-slider .slick-dots,
.meet-team-thumb-slider .slick-dots,
.meet-team-content-slider .slick-prev,
.meet-team-content-slider .slick-next,
.meet-team-thumb-slider .slick-prev,
.meet-team-thumb-slider .slick-next {
    display: none !important;
}

.meet-team-slide.slick-slide.slick-current.slick-active {
    background: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.meet-team-left, .meet-team-content-slider, .meet-team-content-slider .slick-list, .meet-team-content-slider .slick-track {
    height: 100%;
}



#meetOurTeam p.member-bio {
    margin-bottom: 20px !important;
}

/* ── Responsive ─────────────────────────── */


@media (min-width:1200px) {
	
	.meet-team-card {
    aspect-ratio: 1.7/1;
	}

}

/* Tablet (768px) - keep row layout, shrink padding */
@media (max-width: 768px) {
    .meet-team-card {
        padding: 36px 28px;
        gap: 24px;
    }

    .meet-team-right {
        width: 90px;
    }

    .thumb-img {
        width: 76px;
        height: 76px;
    }
}

/* Mobile (520px and below) - stack vertically */
@media (max-width: 520px) {

    .meet-team-card {
        flex-direction: column;
        padding: 30px 22px 36px;
        gap: 28px;
        border-radius: 18px;
        align-items: stretch;
    }

    .meet-team-left {
        width: 100%;
    }

    .member-name {
        font-size: 26px;
    }

    /* Right panel goes horizontal below content */
    .meet-team-right {
        flex-direction: row;
        width: 100%;
        align-self: auto;
        justify-content: center;
        gap: 16px;
    }

    /* Static thumbs: horizontal row */
    .meet-team-thumb-slider.mot-static-thumbs {
        flex-direction: row;
        gap: 16px;
        width: auto;
    }

    /* Slick thumbs: horizontal */
    .meet-team-thumb-slider:not(.mot-static-thumbs) {
        width: 200px;
    }

    .meet-team-thumb-slider:not(.mot-static-thumbs) .slick-list {
        max-height: none;
    }

    .meet-team-thumb-slider:not(.mot-static-thumbs) .slick-track {
        display: flex !important;
        flex-direction: row !important;
        height: auto !important;
    }

    .thumb-img {
        width: 72px;
        height: 72px;
    }

    .arrow-up svg  { transform: rotate(-90deg); }
    .arrow-down svg { transform: rotate(-90deg); }
}