.staff-main {
    margin: 3rem auto 2rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.staff-title {
    font-family: 'Orbitron', Arial, Helvetica, sans-serif;
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.staff-hero {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.staff-hero-title {
    font-family: 'Orbitron', Arial, Helvetica, sans-serif;
    font-size: 4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    /* Gradient text effect */
    background: linear-gradient(90deg, #fff 0%, #ffaa00 40%, #ff6b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 12px #ff6b0033);
}

@media (max-width: 700px) {
    .staff-hero-title {
        font-size: 2.2rem;
    }
}
/* make the flex wrap on smaller screens */

.staff-hero-subtitle {
    color: var(--color-text-light);
    font-size: 1.25rem;
    font-family: 'Kanit', Arial, Helvetica, sans-serif;
    margin-bottom: 0;
}

.staff-section-title {
    font-family: 'Orbitron', Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    color: var(--color-primary-light);
    margin: 2.2rem 0 1.2rem 0;
    letter-spacing: 1px;
    text-transform: uppercase;

}

.staff-ownership,
.staff-team {
    margin-bottom: 2.5rem;
}

.staff-list {
    display: flex;
    flex-wrap: wrap; /* Prevent wrapping, keep all cards on one line */
    gap: 3.5rem;
    justify-content: center;
    align-items: stretch;
    padding: 0 2vw;
    box-sizing: border-box;
}

.staff-card {
    background: var(--color-bg-card, #222);
    border-radius: 1rem;
    box-shadow: 0 4px 20px #0007;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    max-width: 260px;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    justify-content: flex-end;
    position: relative;
}

.staff-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px #ff6b0033, 0 2px 12px #000a;
}

.staff-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.1rem;
    border: 3px solid var(--color-primary);
    box-shadow: 0 2px 12px #0006;
    background: #181818;
}

.staff-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
}

.staff-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.3rem;
    font-family: 'Kanit', Arial, Helvetica, sans-serif;
}

.staff-role {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-family: 'Kanit', Arial, Helvetica, sans-serif;
}

.staff-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1.1rem;
    margin-bottom: 0.1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.staff-social-icons {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    align-items: center;
}

.staff-social-icons a {
    color: #ccc;
    font-size: 1.25rem;
    transition: color 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.staff-social-icons a:hover,
.staff-social-icons a:focus {
    color: var(--color-primary);
}

.discord-tag {
    display: inline-block;
    background: #18191c;
    color: #b9bbbe;
    border-radius: 0.4em;
    padding: 0.18em 0.7em 0.18em 0.7em;
    font-size: 0.98em;
    font-family: 'Kanit', Arial, Helvetica, sans-serif;
    margin: 0 0.15em;
    line-height: 1.5;
    vertical-align: middle;
}

.discord-link {
    color: #b9bbbe;
    text-decoration: none;
    font-weight: 500;
}

.discord-link:hover,
.discord-link:focus {
    color: #fff;
    text-decoration: underline;
}

.staff-desc {
    margin-top: 0.7rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
    font-size: 1rem;
    font-family: 'Kanit', Arial, Helvetica, sans-serif;
    text-align: center;
    min-height: 2.5em;
    line-height: 1.5;
}

.roblox-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.4em;
    padding: 0.08em 0.5em;
    background: #181818;
    transition: 
        background 0.2s,
        color 0.2s,
        box-shadow 0.2s;
    box-shadow: 0 2px 8px #0002;
    font-family: 'Kanit', Arial, Helvetica, sans-serif;
    font-size: 1.08em;
    margin-bottom: 0.2em;
    display: inline-block;
}

.roblox-link:hover,
.roblox-link:focus {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px #ff6b0033;
}

@media (max-width: 700px) {
    .staff-list {
        gap: 1.2rem;
    }
    .staff-card {
        min-width: 160px;
        max-width: 100%;
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
    .staff-avatar {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 1000px) {
    .staff-list {
        flex-wrap: wrap;
    }
    .staff-card {
        flex: 1 1 calc(50% - 1.2rem);
    }
}
