.our-team-page {
    background: #04121e;
    color: #ffffff;
    font-family: 'Roboto', sans-serif !important;
    overflow: hidden;
}

.team-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 150px 50px 90px;
}

.team-heading {
    max-width: 980px;
    margin: 0 auto 42px;
    text-align: center;
}

.about-label {
    color: #1277A0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.team-heading h1 {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 18px;
}

.highlight-blue {
    color: #1277A0;
}

.team-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255,255,255,0.7);
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

/* FILTER BUTTONS */

.team-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.team-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 50px;

    background: transparent;
    border: 1px solid #1277A0;

    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: #ffffff;

    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
}

.team-filter:hover {
    transform: translateY(-2px);
    border-color: #1277A0;
    color: #ffffff;
}

.team-filter.active {
    background: linear-gradient(90deg, #12769F 0%, #1D4266 100%);
    border: none;
    color: #ffffff;
    transform: translateY(-2px);
}

/* CONSTELLATION */

.constellation-wrapper {
    position: relative;
    width: 100%;
    height: 1180px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(59,190,255,0.18);
    background:
        radial-gradient(circle at center, rgba(18,119,160,0.14) 0%, rgba(4,18,30,0.65) 45%, #04121e 84%),
        #04121e;
    box-shadow:
        inset 0 0 90px rgba(0,170,255,0.08),
        0 0 28px rgba(0,170,255,0.08);
}

.stars-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            rgba(4,18,30,.52),
            rgba(4,18,30,.68)
        ),
        url('../images/team/space-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
}

.planet-photo {
    margin: 0 auto 10px;
    border-radius: 50%;
    padding: 5px;
    background: #051220;
    border: 1px solid rgba(59,190,255,0.78);
    box-shadow:
        0 0 18px rgba(0,170,255,0.72),
        inset 0 0 16px rgba(0,170,255,0.18);
    position: relative;
}

.planet-photo::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(59,190,255,0.18);
    box-shadow: 0 0 22px rgba(0,170,255,0.16);
}

.planet-photo img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    background: #0b2032;
}

.planet-info h3 {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.18;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 5px;
}

.planet-info p {
    color: rgba(255,255,255,0.76);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    margin: 0 0 5px;
}

.planet-info span {
    display: block;
    color: #1277A0;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.center-leader,
.management-ring,
.planets-field {
    position: absolute;
    left: 50%;
    top: 48%;
}

.center-leader {
    z-index: 60;
}

.center-leader:hover {
    z-index: 999 !important;
}

.leader-main {
    position: absolute;
    left: 0;
    top: 0;
    width: 220px;
    margin-left: -110px;
    margin-top: -100px;
    text-align: center;
    transition: transform 0.45s ease;
    pointer-events: auto;
}

.leader-main .planet-photo {
    width: 160px;
    height: 160px;
}

.leader-main .planet-info h3 {
    font-size: 20px;
}

.management-ring {
    z-index: 75;
}

.management-planet {
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    margin-left: -75px;
    margin-top: -78px;
    text-align: center;
    transition: transform 0.4s ease, opacity 0.25s ease, filter 0.25s ease;
}

.management-planet .planet-photo {
    width: 102px;
    height: 102px;
}

.management-planet:first-child .planet-photo {
    width: 128px;
    height: 128px;
}

.planets-field {
    z-index: 35;
}

.team-planet {
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    margin-left: -75px;
    margin-top: -72px;
    text-align: center;
    transition:
        transform 0.45s linear,
        opacity 0.25s linear,
        filter 0.25s ease;
}

.team-planet .planet-photo {
    width: 88px;
    height: 88px;
}

.team-planet[data-lead="yes"] .planet-photo {
    width: 104px;
    height: 104px;
}

/* INFO VISIBILITY */

.leader-main .planet-info,
.management-planet .planet-info,
.team-planet .planet-info {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.leader-main:hover,
.management-planet:hover,
.team-planet:hover {
    z-index: 999 !important;
}

.leader-main:hover .planet-info,
.management-planet:hover .planet-info,
.team-planet:hover .planet-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    z-index: 1000;
    background: rgba(4,18,30,0.72);
    border: 1px solid rgba(59,190,255,0.35);
    border-radius: 10px;
    padding: 8px 10px;
    margin-top: 8px;
    box-shadow: 0 0 18px rgba(0,170,255,0.35);
    backdrop-filter: blur(4px);
}

/* ALL MODE */

.mode-all .leader-main .planet-info span,
.mode-all .management-planet .planet-info span,
.mode-all .team-planet .planet-info span {
    display: none !important;
}

/* DEPARTMENT / LEADERSHIP MODE */

.mode-department .center-leader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mode-department .management-planet.is-hidden,
.mode-department .team-planet.is-hidden,
.mode-leadership .management-planet.is-hidden,
.mode-leadership .team-planet.is-hidden {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

.mode-department .management-planet.is-active,
.mode-department .team-planet.is-active,
.mode-leadership .management-planet.is-active,
.mode-leadership .leader-main.is-active {
    opacity: 1 !important;
    visibility: visible;
    width: 190px;
    margin-left: -95px;
    margin-top: -95px;
}

.mode-department .is-dept-lead .planet-photo,
.mode-leadership .is-dept-lead .planet-photo {
    width: 150px;
    height: 150px;
}

.mode-department .is-dept-member .planet-photo,
.mode-leadership .is-dept-member .planet-photo {
    width: 118px;
    height: 118px;
}

.mode-department .planet-info,
.mode-leadership .planet-info {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;

    background: rgba(4,18,30,0.72) !important;
    border: 1px solid rgba(59,190,255,0.28) !important;
    border-radius: 12px;
    padding: 10px 12px !important;
    margin-top: 10px !important;

    box-shadow: 0 0 18px rgba(0,170,255,0.18);
    backdrop-filter: blur(5px);
}

.mode-department .planet-info span,
.mode-leadership .planet-info span {
    display: block !important;
    color: #1277A0;
}

.mode-department .is-dept-lead .planet-info h3,
.mode-leadership .is-dept-lead .planet-info h3 {
    font-size: 18px;
}

.mode-department .is-dept-member .planet-info h3,
.mode-leadership .is-dept-member .planet-info h3 {
    font-size: 15px;
}

.mode-department .planet-info p,
.mode-leadership .planet-info p {
    font-size: 13px;
}

/* ==========================================================================
   RESPONSIVE - OUR TEAM PAGE
   ========================================================================== */

/* Tablet / layout fallback */
@media (max-width: 1200px) {
    .team-container {
        padding: 90px 30px 70px !important;
    }

    .constellation-wrapper {
        height: auto;
        padding: 40px 20px;
    }

    .center-leader,
    .management-ring,
    .planets-field {
        position: relative;
        left: auto;
        top: auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .leader-main,
    .management-planet,
    .team-planet {
        position: relative;
        margin: 0;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible;
        width: auto;
    }

    .planet-info {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* Transitions / hover */
.team-planet,
.management-planet,
.leader-planet {
    transition: transform 0.35s ease, z-index 0.35s ease, opacity 0.35s ease;
}

.planet-photo,
.planet-info {
    transition: all 0.35s ease;
}

.team-planet:hover,
.management-planet:hover,
.leader-planet:hover {
    z-index: 999 !important;
}

.team-planet:hover .planet-photo,
.management-planet:hover .planet-photo,
.leader-planet:hover .planet-photo {
    transform: scale(1.14);
    box-shadow:
        0 0 14px rgba(0,170,255,.45),
        0 0 34px rgba(0,170,255,.28);
}

.team-planet:hover .planet-info,
.management-planet:hover .planet-info,
.leader-planet:hover .planet-info {
    transform: translateY(0) scale(1.08);
    background: rgba(4,18,30,0.88);
    box-shadow: 0 0 20px rgba(0,170,255,.20);
}

.team-planet:hover .planet-info h3,
.management-planet:hover .planet-info h3,
.leader-planet:hover .planet-info h3 {
    color: #ffffff;
}

.team-planet:hover .planet-info p,
.management-planet:hover .planet-info p,
.leader-planet:hover .planet-info p {
    color: #d8ecff;
}

/* hide motto */
.our-team-page .planet-info span {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Tablet */
@media (max-width: 991px) {
    .our-team-page {
        overflow-x: hidden !important;
    }

    .team-container {
        padding: 130px 30px 70px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .team-heading {
        max-width: 100%;
        text-align: left !important;
        margin: 0 0 38px !important;
    }

    .team-heading h1 {
        font-size: 32px !important;
        line-height: 1.25 !important;
    }

    .team-heading p {
        font-size: 17px !important;
        line-height: 1.55 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .center-leader,
    .management-ring,
    .planets-field {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body .our-team-page .team-container {
        padding: 140px 50px 60px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .team-heading {
        text-align: left !important;
        margin: 0 0 36px !important;
        max-width: 100% !important;
    }

    body .our-team-page .team-heading,
    body .our-team-page .team-filters,
    body .our-team-page .constellation-wrapper {
        max-width: 100% !important;
    }

    .about-label {
        font-size: 14px !important;
        letter-spacing: 0.3em !important;
        margin-bottom: 20px !important;
    }

    .team-heading h1 {
        font-size: 25px !important;
        line-height: 1.3 !important;
        margin-bottom: 18px !important;
    }

    .team-heading p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
    }

    .team-filters {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        gap: 10px !important;
        margin-bottom: 36px !important;
        padding-top: 4px !important;
        padding-bottom: 14px !important;
        -webkit-overflow-scrolling: touch;
    }

    .team-filter {
        flex: 0 0 auto !important;
        min-height: 42px !important;
        padding: 0 16px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .team-filter,
    .team-filter:hover,
    .team-filter.active {
        transform: none !important;
    }

    .team-filter.active {
        border: none !important;
    }

    .constellation-wrapper {
        height: auto !important;
        min-height: unset !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 26px !important;
        border-radius: 12px !important;
        padding: 30px 18px !important;
    }

    .stars-layer {
        background-size: 900px auto !important;
        background-position: center top !important;
        background-repeat: repeat-y !important;
        opacity: 0.75 !important;
    }

    .center-leader,
    .management-ring,
    .planets-field {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 26px !important;
    }

    .leader-main,
    .management-planet,
    .team-planet {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        display: block !important;
    }

    .leader-main .planet-photo {
        width: 130px !important;
        height: 130px !important;
    }

    .management-planet .planet-photo,
    .management-planet:first-child .planet-photo,
    .team-planet .planet-photo,
    .team-planet[data-lead="yes"] .planet-photo,
    .mode-department .is-dept-lead .planet-photo,
    .mode-leadership .is-dept-lead .planet-photo,
    .mode-department .is-dept-member .planet-photo,
    .mode-leadership .is-dept-member .planet-photo {
        width: 105px !important;
        height: 105px !important;
    }

    .leader-main .planet-info h3,
    .management-planet .planet-info h3,
    .team-planet .planet-info h3 {
        font-size: 16px !important;
    }

    .planet-info p {
        font-size: 13px !important;
    }

    .mode-department .planet-info,
    .mode-leadership .planet-info {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px auto 0 !important;
        transform: none !important;
    }

    .mode-department .management-ring {
        order: 1 !important;
    }

    .mode-department .planets-field {
        order: 2 !important;
    }

    .mode-department .center-leader {
        display: none !important;
    }

    .mode-department .management-planet.is-active {
        order: 1 !important;
    }

    .mode-department .team-planet.is-active {
        order: 2 !important;
    }

    .mode-department .management-planet.is-hidden,
    .mode-department .team-planet.is-hidden {
        display: none !important;
    }

    .mode-leadership .constellation-wrapper {
        height: auto !important;
        min-height: unset !important;
        padding: 30px 18px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }

    .mode-leadership .center-leader,
    .mode-leadership .management-ring,
    .mode-leadership .planets-field {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .mode-leadership .team-planet.is-hidden,
    .mode-leadership .management-planet.is-hidden {
        display: none !important;
    }

    .mode-leadership .planets-field:empty,
    .mode-leadership .management-ring:empty {
        display: none !important;
    }

    .mode-leadership .leader-main,
    .mode-leadership .management-planet {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    body .our-team-page .team-container {
        padding: 140px 50px 60px !important;
    }

    .team-heading h1 {
        font-size: 25px !important;
    }

    .team-heading p {
        font-size: 16px !important;
    }

    .about-label {
        font-size: 14px !important;
    }
}

/* =========================================================
   TEAM PAGE TABLET FILTER FIX
   ========================================================= */

@media (max-width: 1200px) {
    .constellation-wrapper {
        height: auto !important;
        min-height: 520px !important;
        overflow: visible !important;
        padding: 45px 30px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 35px !important;
    }

    .center-leader,
    .management-ring,
    .planets-field {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .center-leader {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
    }

    .management-ring,
    .planets-field {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(170px, 1fr)) !important;
        justify-items: center !important;
        align-items: start !important;
        gap: 34px 28px !important;
    }

    .leader-main,
    .management-planet,
    .team-planet {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 190px !important;
        max-width: 190px !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        text-align: center !important;
    }

    .mode-department .management-planet.is-hidden,
    .mode-department .team-planet.is-hidden,
    .mode-leadership .management-planet.is-hidden,
    .mode-leadership .team-planet.is-hidden {
        display: none !important;
    }

    .mode-department .center-leader {
        display: none !important;
    }

    .mode-department .management-planet.is-active,
    .mode-department .team-planet.is-active,
    .mode-leadership .management-planet.is-active,
    .mode-leadership .leader-main.is-active {
        display: block !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 190px !important;
        max-width: 190px !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mode-leadership .center-leader {
        display: flex !important;
        justify-content: center !important;
        order: 1 !important;
    }

    .mode-leadership .management-ring {
        order: 2 !important;
        grid-template-columns: repeat(2, minmax(180px, 220px)) !important;
        justify-content: center !important;
    }

    .mode-leadership .planets-field {
        display: none !important;
    }

    .mode-department .management-ring {
        order: 1 !important;
        grid-template-columns: repeat(1, minmax(180px, 220px)) !important;
        justify-content: center !important;
    }

    .mode-department .planets-field {
        order: 2 !important;
    }

    .mode-department .is-dept-lead .planet-photo,
    .mode-leadership .is-dept-lead .planet-photo {
        width: 135px !important;
        height: 135px !important;
    }

    .mode-department .is-dept-member .planet-photo,
    .mode-leadership .is-dept-member .planet-photo,
    .management-planet .planet-photo,
    .team-planet .planet-photo,
    .team-planet[data-lead="yes"] .planet-photo {
        width: 105px !important;
        height: 105px !important;
    }

    .mode-department .planet-info,
    .mode-leadership .planet-info,
    .leader-main .planet-info,
    .management-planet .planet-info,
    .team-planet .planet-info {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
        max-width: 190px !important;
        margin: 10px auto 0 !important;
    }
}

@media (max-width: 991px) {
    .management-ring,
    .planets-field {
        grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
        gap: 32px 24px !important;
    }

    .mode-leadership .management-ring {
        grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .constellation-wrapper {
        padding: 30px 18px !important;
        gap: 28px !important;
    }

    .management-ring,
    .planets-field,
    .mode-leadership .management-ring,
    .mode-department .management-ring {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .leader-main,
    .management-planet,
    .team-planet,
    .mode-department .management-planet.is-active,
    .mode-department .team-planet.is-active,
    .mode-leadership .management-planet.is-active,
    .mode-leadership .leader-main.is-active {
        width: 100% !important;
        max-width: 260px !important;
        margin: 0 auto !important;
    }

    .mode-department .planet-info,
    .mode-leadership .planet-info,
    .leader-main .planet-info,
    .management-planet .planet-info,
    .team-planet .planet-info {
        max-width: 260px !important;
    }
}