.yb-team-page {
    position: relative;
    min-height: 100vh;
    padding: 11rem 0 6rem;
    background:
            radial-gradient(circle at top center, rgba(210, 177, 95, 0.10), transparent 28%),
            radial-gradient(circle at 15% 20%, rgba(28, 48, 118, 0.26), transparent 30%),
            linear-gradient(180deg, #030814 0%, #050a18 48%, #030712 100%);
    overflow: hidden;
}

.yb-team-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            linear-gradient(120deg, rgba(255,255,255,0.02), transparent 32%),
            linear-gradient(300deg, rgba(210,177,95,0.04), transparent 34%);
}

.yb-team-hero,
.yb-team-grid-wrap,
.yb-team-cta {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
}

.yb-team-hero {
    text-align: center;
    margin-bottom: 3.2rem;
}

.yb-team-kicker {
    margin: 0 0 1rem;
    font: 800 0.95rem/1 "Inter", sans-serif;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #d4b15f;
}

.yb-team-hero h1 {
    margin: 0;
    font-family: "Bree Serif", serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.96;
    color: #f7f4ee;
}

.yb-team-subtitle {
    max-width: 760px;
    margin: 1.25rem auto 0;
    font: 400 clamp(1.02rem, 1.8vw, 1.18rem)/1.85 "Inter", sans-serif;
    color: rgba(244, 240, 232, 0.82);
}

.yb-team-grid-wrap {
    margin-top: 2rem;
}

.yb-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.yb-team-card {
    background: rgba(9, 16, 36, 0.88);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow:
            0 18px 44px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255,255,255,0.03);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.yb-team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 177, 95, 0.28);
    box-shadow:
            0 24px 54px rgba(0, 0, 0, 0.34),
            0 0 0 1px rgba(212, 177, 95, 0.08);
}

.yb-team-photo-wrap {
    position: relative;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    background:
            linear-gradient(135deg, rgba(212,177,95,0.14), rgba(45,67,145,0.14)),
            #0a1123;
}

.yb-team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yb-team-card-body {
    padding: 1.15rem 1rem 1.2rem;
    text-align: center;
}

.yb-team-card-body h3 {
    margin: 0;
    font-family: "Bree Serif", serif;
    font-size: 1.45rem;
    line-height: 1.15;
    color: #f7f4ee;
}

.yb-team-card-body p {
    margin: 0.55rem 0 0;
    font: 600 0.96rem/1.5 "Inter", sans-serif;
    color: #d4b15f;
    letter-spacing: 0.04em;
}

.yb-team-teacher-row {
    display: flex;
    justify-content: center;
    margin-top: 1.6rem;
}

.yb-team-card-teacher {
    width: min(320px, 100%);
}

.yb-team-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: rgba(212, 177, 95, 0.12);
    border: 1px solid rgba(212, 177, 95, 0.18);
    color: #d4b15f;
    font: 800 0.72rem/1 "Inter", sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.yb-team-cta {
    margin-top: 4.5rem;
}

.yb-team-cta-inner {
    padding: 2.3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    background:
            linear-gradient(180deg, rgba(12, 20, 43, 0.95), rgba(7, 12, 29, 0.95));
    border: 1px solid rgba(212, 177, 95, 0.14);
    box-shadow:
            0 18px 50px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(212, 177, 95, 0.05);
}

.yb-team-cta-kicker {
    margin: 0 0 0.9rem;
    font: 800 0.84rem/1 "Inter", sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #d4b15f;
}

.yb-team-cta-inner h2 {
    margin: 0;
    font-family: "Bree Serif", serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    color: #f7f4ee;
}

.yb-team-cta-inner p {
    max-width: 760px;
    margin: 1rem auto 0;
    font: 400 1rem/1.85 "Inter", sans-serif;
    color: rgba(243, 239, 231, 0.78);
}

.yb-team-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    min-height: 54px;
    padding: 0 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    background: linear-gradient(180deg, #e1c37a 0%, #cfa95a 100%);
    color: #08101f;
    font: 800 0.94rem/1 "Inter", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 12px 26px rgba(207, 169, 90, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yb-team-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(207, 169, 90, 0.32);
}

@media (max-width: 1100px) {
    .yb-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .yb-team-page {
        padding: 9.5rem 0 5rem;
    }

    .yb-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yb-team-cta {
        margin-top: 3.5rem;
    }
}

@media (max-width: 560px) {
    .yb-team-page {
        padding: 8.8rem 0 4rem;
    }

    .yb-team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .yb-team-card-body {
        padding: 1rem 0.95rem 1.1rem;
    }

    .yb-team-card-body h3 {
        font-size: 1.3rem;
    }

    .yb-team-cta-inner {
        padding: 1.7rem 1.15rem;
        border-radius: 1.5rem;
    }
}