* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
}

body {
    background: linear-gradient(to right, #f7f8fc, #eef1f7);
}

/* Layout */
.container {
    display: flex;
}

.main {
    flex: 1;
    padding: 40px;
}

/* Topbar */
.topbar {
    margin-bottom: 40px;
    text-align: center;
}

.topbar h1 {
    color: #1D4ED8;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* GRID */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* CARD */
.staff-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* IMAGE CIRCLE */
.card-image {
    width: 170px;
    height: 170px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-image {
    width: 100%;
    height: 100%;
}

.no-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* NAME */
.card-content h3 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

/* SUBJECT */
.subject {
    color: #1D4ED8;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* DESCRIPTION */
.description {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* EMPTY STATE */
.no-teachers {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    color: #777;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main {
        padding: 20px;
    }

    .subject {
        font-size: 16px;
    }

    .card-content h3 {
        font-size: 20px;
    }
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.pagination a:hover {
    background: #1D4ED8;
    color: white;
}

.pagination a.active {
    background: #F59E0B;
    color: white;
}