:root {
    --primary-green: #4e9331;
    --dark-bg: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-muted: #a0a0a0;
    --max-width: 1100px;
}

/* Center everything in the middle of the screen */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.staff-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/banner.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #222;
    margin-bottom: 40px;
}

.staff-hero h1 {
    font-size: 2.5rem;
    letter-spacing: 4px;
    color: #fff;
    margin: 55px;
}

/* Grid Layout: Strict 3 per row */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 60px;
}

.staff-card {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 25px;
    transition: transform 0.2s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    border-color: #333;
}

.staff-card img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    flex-shrink: 0;
}

.staff-content {
    margin-left: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staff-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
}

.rank-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

/* Space between rank and favorite item */
.staff-extra {
    margin-top: 20px;
}

.staff-extra p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

.staff-extra span {
    color: #eee;
    font-weight: 500;
    display: block;
}

/* Rank Colors */
.owner { color: #AA0000; }
.admin { color: #FF5555; }
.srmod { color: #FFAA00; }
.mod { color: #FFAA00; }
.helper { color: #FFFF55; }

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .staff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .staff-grid { grid-template-columns: 1fr; }
    .staff-card { padding: 20px; }
}