/* Staff Page Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap");

body {
    padding: 20px;
    font-family: 'Inter', system-ui, Arial, sans-serif;
    background: #f4f7fb;
    color: #333;
}

h1 {
    text-align: center;
    font-weight: 800;
    color: #0b6b4f;
    margin-bottom: 8px;
    animation: fadeInDown 0.8s ease-out;
}

.section-title {
    text-align: center;
    color: #666;
    margin-bottom: 45px;
    font-size: 18px;
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
}

/* Grids */
.staff-grid,
.top-management {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.top-management {
    max-width: 900px;
}

.principal-row {
    max-width: 400px;
    margin: 0 auto 50px;
}

/* Card Styles */
.staff-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;

    /* Animation defaults */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger animation for cards */
.staff-card:nth-child(1) {
    animation-delay: 0.1s;
}

.staff-card:nth-child(2) {
    animation-delay: 0.2s;
}

.staff-card:nth-child(3) {
    animation-delay: 0.3s;
}

.staff-card:nth-child(4) {
    animation-delay: 0.4s;
}

.staff-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(11, 107, 79, 0.15);
    border-color: #0b6b4f;
}

/* Image */
.staff-card img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #e5e7eb;
    margin-bottom: 18px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.staff-card:hover img {
    border-color: #0b6b4f;
    transform: scale(1.05);
}

/* Text */
.staff-name {
    font-size: 19px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 6px;
}

.staff-role {
    color: #0b6b4f;
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 12px 32px;
    background: #0b6b4f;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgba(11, 107, 79, 0.3);
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 107, 79, 0.4);
    color: #fff;
    text-decoration: none;
}

footer {
    text-align: center;
    margin-top: 60px;
    color: #888;
    font-size: 14px;
    padding-bottom: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {

    .staff-grid,
    .top-management {
        grid-template-columns: 1fr;
    }

    .staff-card {
        margin: 0 10px;
    }
}