/* ================= TEAM CAROUSEL (NEO) ================= */

.neo-team-section {
    padding: 60px 15px 40px;
    text-align: center;
}

.neo-team-heading {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e90ff;
    font-family: "Times New Roman", Times, serif;
}

.neo-team-wrapper {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    padding: 40px 60px 70px;
}

/* viewport for layout only */
.neo-team-viewport {
    position: relative;
    height: 460px;              /* taller for big center card */
}

/* ========== CARD BASE (side cards) ========== */

.neo-team-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 260px;               /* side-card width */
    height: 360px;              /* side-card height */
    transform: translateX(-50%);
    transition: transform 0.6s ease, opacity 0.6s ease,
                filter 0.6s ease, box-shadow 0.6s ease;
    opacity: 0;
    z-index: 1;
}

.neo-team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* front & back layers */
.neo-team-face {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* FRONT: image */
.neo-team-face-front {
    opacity: 1;
    transform: rotateY(0deg);
}
.neo-team-face-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BACK: blue details card */
.neo-team-face-back {
    background: #1e90ff;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    text-align: center;

    opacity: 0;
    transform: rotateY(10deg) scale(0.98);
}

.neo-team-face-back h3 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 600;
}

.neo-team-face-back h5 {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.neo-team-face-back p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Make sure faces always fill card (important when center bigger) */
.neo-team-card--center .neo-team-face-front,
.neo-team-card--center .neo-team-face-back {
    width: 100%;
    height: 100%;
}

/* ========== HOVER EFFECT – ONLY CENTER CARD ========== */
/* when the center card is hovered: hide front, show back  */
.neo-team-card--center:hover .neo-team-face-front {
    opacity: 0;
    transform: rotateY(-12deg) scale(0.96);
}
.neo-team-card--center:hover .neo-team-face-back {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
}

/* ========== POSITIONS (center big, sides small) ========== */

/* BIG CENTER CARD SIZE */
.neo-team-card--center {
    opacity: 1;
    filter: none;
    z-index: 5;

    width: 380px;               /* center width */
    height: 460px;              /* center height */

    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.neo-team-card--left-1 {
    opacity: 0.85;
    z-index: 4;
    transform: translateX(calc(-50% - 260px)) translateY(25px) scale(0.93);
}

.neo-team-card--right-1 {
    opacity: 0.85;
    z-index: 4;
    transform: translateX(calc(-50% + 260px)) translateY(25px) scale(0.93);
}

.neo-team-card--left-2 {
    opacity: 0.4;
    z-index: 3;
    filter: blur(1px);
    transform: translateX(calc(-50% - 430px)) translateY(40px) scale(0.86);
}

.neo-team-card--right-2 {
    opacity: 0.4;
    z-index: 3;
    filter: blur(1px);
    transform: translateX(calc(-50% + 430px)) translateY(40px) scale(0.86);
}

.neo-team-card--far {
    opacity: 0;
    z-index: 1;
    transform: translateX(-50%) translateY(50px) scale(0.7);
}

/* ========== ARROWS ========== */

.neo-team-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #1e90ff;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 10;
}

.neo-team-arrow-left { left: 10px; }
.neo-team-arrow-right { right: 10px; }

.neo-team-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    background: #0f7ae0;
}

/* ========== BOTTOM TEXT + DOTS ========== */

.neo-team-info {
    margin-top: 14px;
}

.neo-team-name {
    font-size: 24px;
    font-weight: 700;
    color: #002c6a;
    margin-bottom: 4px;
}

.neo-team-role {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 12px;
}

.neo-team-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.neo-team-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d0d4e0;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.neo-team-dot-active {
    background: #1e90ff;
    transform: scale(1.25);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 992px) {
    .neo-team-wrapper {
        padding: 30px 35px 60px;
    }

    .neo-team-card {
        width: 230px;
        height: 320px;
    }

    .neo-team-card--center {
        width: 320px;
        height: 420px;
    }

    .neo-team-card--left-1 {
        transform: translateX(calc(-50% - 230px)) translateY(25px) scale(0.93);
    }

    .neo-team-card--right-1 {
        transform: translateX(calc(-50% + 230px)) translateY(25px) scale(0.93);
    }

    .neo-team-card--left-2 {
        transform: translateX(calc(-50% - 380px)) translateY(40px) scale(0.86);
    }

    .neo-team-card--right-2 {
        transform: translateX(calc(-50% + 380px)) translateY(40px) scale(0.86);
    }
}

@media (max-width: 768px) {
    .neo-team-wrapper {
        padding: 20px 10px 50px;
    }

    .neo-team-card {
        width: 210px;
        height: 290px;
    }

    .neo-team-card--center {
        width: 90%;
        max-width: 380px;
        height: 420px;
    }

    /* hide far side cards on mobile */
    .neo-team-card--left-1,
    .neo-team-card--right-1,
    .neo-team-card--left-2,
    .neo-team-card--right-2 {
        opacity: 0;
        transform: translateX(-50%) translateY(50px) scale(0.7);
    }

    .neo-team-arrow-left { left: 0; }
    .neo-team-arrow-right { right: 0; }
}
