/* ===================================================================
   Modern Staff Listing Styles
   =================================================================== */

/* 1. CSS Variables for Easy Customization
------------------------------------------------------------------- */
:root {
    --staff-primary-color: #005a87; /* A professional blue for names and links */
    --staff-text-color: #333;
    --staff-secondary-text-color: #6c757d;
    --staff-card-background: #ffffff;
    --staff-card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --staff-card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --staff-card-border-radius: 12px;
}

/* 2. The Main Container (Grid Layout)
------------------------------------------------------------------- */
div.staff-member-listing {
    display: grid;
    /* On mobile, one column. On larger screens, we'll add more. */
    grid-template-columns: 1fr; 
    gap: 2rem; /* The space between cards */
    padding: 1rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--staff-text-color);
}

/* 3. The Staff Card
------------------------------------------------------------------- */
.staff-card {
    background-color: var(--staff-card-background);
    border-radius: var(--staff-card-border-radius);
    box-shadow: var(--staff-card-shadow);
    text-align: center;
    padding: 2rem;
    overflow: hidden; /* Ensures nothing spills out of the rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-8px); /* Lifts the card up on hover */
    box-shadow: var(--staff-card-hover-shadow);
}

/* 4. Staff Photo Styling
------------------------------------------------------------------- */
.staff-photo-container {
    width: 140px;
    height: 140px;
    margin: -4rem auto 1.5rem; /* Pulls the photo up slightly for an overlapping effect */
    border-radius: 50%; /* Makes the photo circular */
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.staff-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents the image from being stretched or squished */
}

/* 5. Typography and Info Styling
------------------------------------------------------------------- */
.staff-info h3.staff-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--staff-primary-color);
    margin: 0 0 0.25rem 0;
}

.staff-info p.staff-position {
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--staff-secondary-text-color);
    margin: 0 0 1rem 0;
}

.staff-info .staff-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--staff-secondary-text-color);
    margin-bottom: 1.5rem;
}

.staff-info .staff-email a {
    text-decoration: none;
    color: var(--staff-primary-color);
    font-weight: 600;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.staff-info .staff-email a:hover {
    background-color: var(--staff-primary-color);
    color: white;
    border-color: var(--staff-primary-color);
}


/* 6. Responsive Design (Media Queries)
------------------------------------------------------------------- */
/* For tablets and larger */
@media (min-width: 768px) {
    div.staff-member-listing {
        /* Two columns */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For desktops and larger */
@media (min-width: 1024px) {
    div.staff-member-listing {
        /* Three columns */
        grid-template-columns: repeat(3, 1fr);
    }
}
