.main { margin: 54px auto 0 auto; }
@media only screen and (max-width: 1200px) { .main { margin: 49px auto 0 auto; } }
@media only screen and (max-width: 600px) { .main { margin: 46px auto 0 auto; } .main__hero { min-height: 160px; } }

/* ========================================
   NASI EKSPERCI — Trainers Page
   Prefix: .tp
======================================== */

/* ---- WRAPPER ---- */
.tpWrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.tpWrapper--hero {
    width: 100%;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: #faf8f8;
}
.tpWrapper--hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../images/bootcamp/statues.jpg') top/cover no-repeat;
    opacity: 0.15;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    pointer-events: none;
}
.tpWrapper--hero .tp {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.tp {
    font-family: 'Poppins', sans-serif;
    color: #2C2C2C;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ---- HERO ---- */
.tp__hero {
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
}

.tp__heroBadge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: rgba(128, 0, 0, 0.06);
    border: 1px solid rgba(128, 0, 0, 0.12);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: #800000;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.tp__heroBadge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(128, 0, 0, 0.08) 40%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(128, 0, 0, 0.08) 60%,
        transparent 80%
    );
    animation: badgeShimmer 4s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0%, 100% { left: -100%; }
    50%, 80% { left: 150%; }
}

.tp__heroBadge i {
    font-size: 0.9rem;
    animation: badgeIconPulse 3s ease-in-out infinite;
}

@keyframes badgeIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.tp__h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.tp__h1Accent {
    color: #800000;
    position: relative;
    white-space: nowrap;
}

.tp__h1Accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 6px;
    background: rgba(128, 0, 0, 0.12);
    border-radius: 3px;
}

.tp__heroSubtitle {
    font-size: 1.1rem;
    color: #3a3a3a;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.tp__heroSubtitle strong {
    color: #1a1a1a;
    font-weight: 600;
}

.tp__heroHighlight {
    display: inline;
    font-weight: 700;
    color: #800000;
    background: linear-gradient(to top, rgba(128, 0, 0, 0.10) 40%, transparent 40%);
}

/* Rating bar */
.tp__ratingBar {
    max-width: 480px;
    margin: 0 auto 48px;
}

.tp__ratingBarTrack {
    height: 14px;
    background: #ddd0d0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.tp__ratingBarFill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #600000, #900000, #c00000);
    border-radius: 20px;
    transition: width 2s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 0 12px rgba(128, 0, 0, 0.3);
}

.tp__ratingBar--animated .tp__ratingBarFill {
    width: 95%;
}

.tp__ratingBarLabels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
    padding: 0 2px;
}

/* Stats */
.tp__heroStats {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    padding: 28px 48px;
    background: rgba(128, 0, 0, 0.03);
    border: 1px solid rgba(128, 0, 0, 0.08);
    border-radius: 20px;
}

.tp__heroStat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tp__heroStatValue {
    font-size: 2.2rem;
    font-weight: 800;
    color: #800000;
    line-height: 1.1;
}

.tp__heroStatValue small {
    font-size: 0.55em;
    font-weight: 600;
    opacity: 0.7;
}

.tp__heroStatLabel {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.tp__heroStatDivider {
    width: 1px;
    height: 44px;
    background: rgba(128, 0, 0, 0.12);
}

/* Features */
.tp__heroFeatures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 52px;
    text-align: center;
}

.tp__heroFeature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tp__heroFeatureIcon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.08), rgba(128, 0, 0, 0.04));
    border: 1px solid rgba(128, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #800000;
    margin-bottom: 2px;
}

.tp__heroFeatureTitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
}

.tp__heroFeatureText {
    font-size: 0.9rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
}

/* ---- TRAINERS SECTION (z tłem statues.jpg) ---- */
.tp__trainersSection {
    position: relative;
    overflow: hidden;
    background: #1A1A1A;
    padding: 80px 0;
    width: 100%;
}

.tp__trainersSection::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../images/bootcamp/statues.jpg') top/cover no-repeat;
    opacity: 0.10;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    pointer-events: none;
}

.tp__trainersInner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- GRID TRENERÓW ---- */
.tp__trainersGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* ---- KARTA TRENERA ---- */
.tp__card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

/* shimmer sweep */
.tp__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}
.tp__card:hover::before {
    left: 100%;
}

/* top accent line */
.tp__card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #800000, #c0392b, #800000);
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 1;
}
.tp__card:hover::after {
    width: 100%;
}

.tp__card:hover {
    border-color: rgba(128, 0, 0, 0.35);
    box-shadow: 0 12px 40px rgba(128, 0, 0, 0.15), 0 0 60px rgba(128, 0, 0, 0.06);
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.06);
}

/* ---- AVATAR ---- */
.tp__cardAvatar {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3A3A3A, #2C2C2C);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 2rem;
    color: #888;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-radius 0.5s ease;
}

.tp__card:hover .tp__cardAvatar {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 16px 40px rgba(128, 0, 0, 0.25), 0 0 20px rgba(128, 0, 0, 0.1);
    border-radius: 20px;
}

.tp__cardAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: filter 0.5s ease, transform 0.5s ease;
}

.tp__card:hover .tp__cardAvatar img {
    filter: brightness(1.1) contrast(1.05);
    transform: scale(1.05);
}

/* ---- INFO ---- */
.tp__cardName {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.tp__card:hover .tp__cardName {
    background: linear-gradient(90deg, #fff, #e0c4c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tp__cardDesc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.tp__card:hover .tp__cardDesc {
    color: rgba(255, 255, 255, 0.95);
}

.tp__cardDesc p {
    margin: 0;
}

.tp__cardMore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(128, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(128, 0, 0, 0.3);
    border-radius: 10px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tp__card:hover .tp__cardMore {
    color: #fff;
    background: rgba(128, 0, 0, 0.5);
    border-color: rgba(128, 0, 0, 0.7);
    box-shadow: 0 4px 20px rgba(128, 0, 0, 0.3);
    transform: translateX(4px);
}

.tp__cardMore i {
    font-size: 0.6rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tp__card:hover .tp__cardMore i {
    transform: translateX(5px);
}

/* ---- POPUP TRENERA ---- */
/* ---- CTA ---- */
.tp--continued {
    padding-bottom: 0;
}

.tp__ctaSection {
    text-align: center;
    padding: 80px 0;
}

.tp__ctaIcon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #800000, #a00000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 6px 24px rgba(128, 0, 0, 0.18);
}

.tp__ctaTitle {
    font-size: 1.6rem;
    font-weight: 800;
    color: #800000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tp__ctaText {
    font-size: 1.05rem;
    color: #3a3a3a;
    max-width: 550px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.tp__ctaButtons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tp__ctaBtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.tp__ctaBtn--primary {
    background: #800000;
    color: #fff;
}

.tp__ctaBtn--primary:hover {
    background: #a00000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.3);
}

.tp__ctaBtn--outline {
    background: transparent;
    color: #800000;
    border: 2px solid #800000;
}

.tp__ctaBtn--outline:hover {
    background: #800000;
    color: #fff;
    transform: translateY(-2px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .tp__trainersGrid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tp__h1 {
        font-size: 2rem;
    }

    .tp__heroStats {
        gap: 32px;
        padding: 24px 36px;
    }
}

@media (max-width: 768px) {
    .tp__hero {
        padding: 60px 0 40px;
    }

    .tp__heroBadge {
        font-size: 0.78rem;
        padding: 6px 16px;
        margin-bottom: 20px;
    }

    .tp__h1 {
        font-size: 1.6rem;
    }

    .tp__heroSubtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .tp__ratingBar {
        max-width: 380px;
        margin-bottom: 40px;
    }

    .tp__heroStats {
        gap: 24px;
        padding: 22px 28px;
    }

    .tp__heroStatValue {
        font-size: 1.7rem;
    }

    .tp__heroStatDivider {
        height: 36px;
    }

    .tp__heroFeatures {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }

    .tp__trainersSection {
        padding: 60px 0;
    }

    .tp__card {
        padding: 24px;
        gap: 20px;
    }

    .tp__cardAvatar {
        width: 100px;
        height: 100px;
    }

    .tp__ctaTitle {
        font-size: 1.3rem;
    }

}

@media (max-width: 480px) {
    .tp__hero {
        padding: 40px 0 30px;
    }

    .tp__heroBadge {
        font-size: 0.72rem;
        padding: 5px 14px;
        gap: 6px;
        margin-bottom: 16px;
    }

    .tp__h1 {
        font-size: 1.3rem;
    }

    .tp__heroSubtitle {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }

    .tp__ratingBar {
        max-width: 100%;
        margin-bottom: 32px;
    }

    .tp__heroStats {
        gap: 20px;
        padding: 20px 24px;
        border-radius: 16px;
    }

    .tp__heroStatValue {
        font-size: 1.4rem;
    }

    .tp__heroStatLabel {
        font-size: 0.72rem;
    }

    .tp__heroStatDivider {
        height: 28px;
    }

    .tp__card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }

    .tp__cardAvatar {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .tp__ctaButtons {
        flex-direction: column;
        align-items: center;
    }

    .tp__ctaBtn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}
