/* =========================
   STAFF PAGE BASE
========================= */

.staff-page {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 60px 20px;
}

/* =========================
   TITLE SECTION
========================= */

.staff-container {
    max-width: 1300px;
    margin: auto;
    text-align: center;
}

.staff-container h1 {
    color: #222;
    margin-bottom: 10px;
    font-size: 38px;
}

.staff-container p {
    color: #666;
    margin-bottom: 40px;
    font-size: 17px;
}

/* =========================
   SECTION HEADINGS
========================= */

.staff-container h2 {
    margin: 50px 0 25px;
    color: #333;
    font-size: 30px;
    position: relative;
}

.staff-container h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: #d32f2f;
    margin: 10px auto 0;
    border-radius: 20px;
}

/* =========================
   STAFF GRID
========================= */

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

/* =========================
   STAFF CARD
========================= */

.staff-card {
    width: 320px;
    height: 450px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
    transition: .3s ease;
    display: flex;
    flex-direction: column;
}

/* =========================
   STAFF IMAGE
========================= */

.staff-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 15%;
}

/* =========================
   STAFF DETAILS
========================= */

.staff-card h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 22px;
    color: #222;
}

.staff-card p {
    color: #777;
    font-size: 17px;
    margin-bottom: 20px;
}

/* =========================
   HOVER
========================= */

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .staff-card {
        width: 100%;
        max-width: 340px;
        margin: auto;
        height: auto;
    }

    .staff-card img {
        height: 280px;
    }
}