.team-page {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 24px;
}

.team-bg {
    background-color: #1a0b2e;
    padding: 120px 0;
}
.team-page .team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 160px;
}

.team-row .team-text {
    order: 1;
}

.team-row .team-photo {
    order: 2;
}

.team-row.reverse .team-photo {
    order: 1;
}

.team-row.reverse .team-text {
    order: 2;
}

/* ================= TEXT ================= */

.team-text {
    flex: 1;
    max-width: 520px;

    /* ✅ RAMKA / KARTA pod tekst (żeby nie zlewał się z tłem) */
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(89, 15, 100, 0.18);
    border-radius: 22px;
    padding: 28px 28px;

    /* ✅ glass effect */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 12px 34px rgba(0,0,0,0.08);
}

.team-text h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1f2937;
}

.team-text .role {
    font-size: 15px;
    font-weight: 600;
    color: #531d65;
    margin-bottom: 24px;
}

.team-text p {
    font-size: 17px;
    line-height: 1.7;
    color: #5b1f6f;
}

/* ================= IMAGE ================= */

.team-photo {
    width: 360px;
    height: 420px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* ================= SLIDER ================= */

.team-slider-section {
    margin-top: 180px;
}

.team-slider-section h3 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: #1f2937;
    position: relative;
}

.team-slider-section h3::after {
    content: "";
    display: block;
    width: 110px;
    height: 4px;
    background: #5b1f6f;
    margin: 22px auto 0;
    border-radius: 4px;
}

.team-slider-container {
    position: relative;
    overflow: hidden;
}

.team-slider {
    display: flex;
    gap: 32px;
    scroll-behavior: smooth;
}

.team-slider img {
    width: 260px;
    height: 320px;
    object-fit: cover;
    border-radius: 22px;
    flex-shrink: 0;
}

/* ================= ARROW ================= */

.slider-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover svg path {
    stroke: #5b1f6f;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
    .team-row {
        flex-direction: column;
        text-align: center;
    }

    .team-photo img {
        max-width: 100%;
    }

    /* ✅ lepszy wygląd ramki na mobile */
    .team-text {
        max-width: 100%;
        padding: 22px 18px;
    }
}

@media (max-width: 900px) {

    .team-row,
    .team-row.reverse {
        flex-direction: column !important;
        text-align: center;
    }

    .team-photo {
        order: 1 !important;
    }

    .team-text {
        order: 2 !important;
    }
}
.team-row-full {
    justify-content: center;
}

.team-text-full {
    max-width: 1100px;
    width: 100%;
    text-align: center;
}

.team-text-full h2 {
    margin-bottom: 20px;
}

.team-text-full ul {
    display: inline-block;
    text-align: left;
    margin: 15px auto;
}
.team-intro-box p,
.team-intro-box ul,
.team-intro-box li {
    color: #4b1c5c;
}
.team-intro {
    display: flex;
    justify-content: center;
    margin-bottom: 120px;
    position: relative;
    z-index: 1;
}
.team-intro-box {
    max-width: 1100px;
    width: 100%;
    background: #ffffff;        /* RAMKA */
    border-radius: 16px;
    padding: 40px 50px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
