/* ==========================================================================
   Non-Teaching Staff Page Styles
   ========================================================================== */

/* Main Staff Section Container */
.staff-section {
    padding: 40px 0;
    min-height: 80vh;
    background-color: var(--white);
    background-image: linear-gradient(to bottom, #ffffff, #faf8f5);
}

/* Section Header (Title and Subtitle) */
.staff-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.staff-section .section-header h2 {
    color: var(--secondary-maroon);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.staff-section .section-header p {
    color: var(--primary-teal);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Staff Grid Layout */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    justify-content: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Individual Staff Card Styling */
.staff-card {
    background: var(--primary-teal);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--primary-teal);
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background-color: var(--secondary-maroon);
    border-color: var(--secondary-maroon);
}

/* Staff Image Wrapper (Circle) */
.staff-image-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--cream-warm);
    transition: all 0.3s ease;
}

.staff-card:hover .staff-image-wrapper {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Individual Staff Image */
.staff-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.staff-card:hover .staff-image {
    transform: scale(1.1);
}

/* Staff Name Styling */
.staff-name {
    font-size: 1.3rem;
    font-weight: 750;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-family: var(--font-primary);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.staff-card:hover .staff-name {
    color: var(--accent-gold);
}

/* Staff Designation Styling */
.staff-designation {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.staff-card:hover .staff-designation {
    background: var(--white);
    color: var(--secondary-maroon);
    border-color: var(--white);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet (Laptops & Large Tablets) */
@media (max-width: 1100px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 850px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices */
@media (max-width: 600px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 1rem;
    }

    .staff-card {
        padding: 2rem 0.75rem;
        border-radius: 12px;
    }

    .staff-image-wrapper {
        width: 110px;
        height: 110px;
        margin-bottom: 1.25rem;
        border-width: 3px;
    }

    .staff-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .staff-designation {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .staff-section .section-header h2 {
        font-size: 1.75rem;
    }

    .staff-section .section-header p {
        font-size: 0.95rem;
    }
}