/* PathJeevani Team v1.1 — same look as Artist Booking cards.
   Team members = grid. Advisors = carousel. Font follows the website. */

.pjteam-head,
.pjteam-grid,
.pjteam-carousel-wrap {
    --pjt-primary: #456d90;
    --pjt-gold: #e8b512;
    --pjt-ink: #1a1f2b;
    --pjt-paper: #ffffff;
    --pjt-muted: #767f89;
    --pjt-hairline: #e7e9ec;
    box-sizing: border-box;
}
.pjteam-head *,
.pjteam-grid *,
.pjteam-carousel-wrap * { box-sizing: border-box; }

/* ---------- Heading row: Title ------- line ---------- */
.pjteam-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 22px;
}
.pjteam-head-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--pjt-ink);
    white-space: nowrap;
}
.pjteam-head-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #c5cbd3, rgba(197, 203, 211, 0));
}

/* ---------- Card (same as artist card) ---------- */
.pjteam-card {
    background: var(--pjt-paper);
    border: 0;
    border-bottom: 3px solid #eab714;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 6px 18px rgba(22, 40, 58, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pjteam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -14px rgba(22, 40, 58, 0.28);
}

.pjteam-photo-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eef2f6;
    line-height: 0 !important;
    margin: 0 !important;
}
.pjteam-photo-wrap img.pjteam-photo {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.5s ease;
}
.pjteam-card:hover .pjteam-photo { transform: scale(1.06); }

.pjteam-body {
    padding: 16px 18px 16px !important;
    margin: 0 !important;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pjteam-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--pjt-ink);
}
.pjteam-position {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--pjt-primary);
    overflow-wrap: anywhere;
    margin: 0 0 14px !important;
    padding: 0 !important;
    /* always reserve 2 lines so all cards are the same height */
    min-height: calc(2 * 1.4em);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* bottom row: LinkedIn  ->  (same as "View Profile ->") */
.pjteam-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pjt-ink);
    text-decoration: none;
    margin: 0 !important;
    margin-top: auto !important;
    padding-top: 14px !important;
    border-top: 1px solid var(--pjt-hairline);
    transition: color 0.2s ease;
}
.pjteam-cta-label { display: inline-flex; align-items: center; gap: 8px; }
.pjteam-cta-label svg { width: 15px; height: 15px; color: var(--pjt-primary); flex-shrink: 0; }
.pjteam-cta .pjteam-arrow-ico {
    font-size: 16px;
    color: var(--pjt-gold);
    transition: transform 0.2s ease;
}
.pjteam-cta:hover { color: var(--pjt-primary); }
/* no LinkedIn: same height, nothing visible */
.pjteam-cta-empty { visibility: hidden; pointer-events: none; }
.pjteam-cta-empty svg { display: inline-block; width: 15px; height: 15px; }
.pjteam-cta:hover .pjteam-arrow-ico { transform: translateX(4px); }

/* ---------- Team grid ---------- */
.pjteam-grid {
    display: grid;
    grid-template-columns: repeat(var(--pjteam-cols, 4), minmax(0, 1fr));
    gap: 24px;
    margin: 30px 0;
    width: 100%;
}
.pjteam-grid > .pjteam-card { min-width: 0; }

/* ---------- Advisors carousel ---------- */
.pjteam-carousel-wrap {
    position: relative;
    display: block;
    margin: 30px 0;
}
.pjteam-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 4px 4px 16px;
    width: 100%;
    align-items: stretch;
    scrollbar-width: none;
}
.pjteam-carousel::-webkit-scrollbar { display: none; }
.pjteam-carousel .pjteam-card {
    height: auto;
    flex: 0 0 calc((100% - (var(--pjteam-cols, 4) - 1) * 24px) / var(--pjteam-cols, 4));
    min-width: 0;
    scroll-snap-align: start;
}

.pjteam-nav {
    position: absolute;
    top: calc(50% - 8px);
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #456d90;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(22, 40, 58, 0.28);
    transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.pjteam-nav svg { width: 18px; height: 18px; display: block; }
.pjteam-nav:hover { background: #456d90; color: #fff; box-shadow: 0 6px 18px rgba(22, 40, 58, 0.32); }
.pjteam-prev { left: 8px; }
.pjteam-next { right: 8px; }
.pjteam-carousel-wrap.pjteam-no-scroll .pjteam-nav { display: none; }

@media (min-width: 1320px) {
    .pjteam-prev { left: -21px; }
    .pjteam-next { right: -21px; }
}

/* ---------- Laptop / small desktop ---------- */
@media (max-width: 1100px) {
    .pjteam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .pjteam-carousel .pjteam-card { flex-basis: calc((100% - 2 * 24px) / 3); }
    .pjteam-head-title { font-size: 28px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 899px) {
    .pjteam-head-title { font-size: 26px; }
}
@media (max-width: 768px) {
    .pjteam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .pjteam-carousel .pjteam-card { flex-basis: calc(50% - 12px); }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
    .pjteam-head { gap: 12px; margin-bottom: 16px; }
    .pjteam-head-title { font-size: 22px; white-space: normal; }
    .pjteam-head-line { display: none; }

    /* team grid: 2 per row, compact */
    .pjteam-grid { gap: 12px; margin: 20px 0; }
    .pjteam-grid .pjteam-body { padding: 12px !important; }
    .pjteam-grid .pjteam-name { font-size: 15px; margin-bottom: 6px !important; }
    .pjteam-grid .pjteam-position {
        font-size: 12px;
        margin-bottom: 10px !important;
    }
    .pjteam-grid .pjteam-cta { font-size: 11.5px; padding-top: 10px !important; }
    .pjteam-grid .pjteam-cta-label { gap: 6px; }
    .pjteam-grid .pjteam-cta-label svg { width: 13px; height: 13px; }

    /* advisors: one card + peek of next, swipe */
    .pjteam-carousel { gap: 12px; }
    .pjteam-carousel .pjteam-card { flex: 0 0 78%; }
    .pjteam-carousel .pjteam-body { padding: 14px 16px !important; }
    .pjteam-carousel .pjteam-name { font-size: 17px; }
    .pjteam-nav { width: 34px; height: 34px; }
    .pjteam-nav svg { width: 15px; height: 15px; }
    .pjteam-prev { left: 4px; }
    .pjteam-next { right: 4px; }

    .pjteam-card:hover { transform: none; }
}

/* very small phones */
@media (max-width: 359px) {
    .pjteam-grid { grid-template-columns: 1fr; }
    .pjteam-head-title { font-size: 20px; }
}

/* touch screens */
@media (hover: none) {
    .pjteam-card:hover .pjteam-photo { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pjteam-card, .pjteam-photo, .pjteam-carousel { transition: none !important; scroll-behavior: auto !important; }
}
