﻿.section {
    padding: 30px 15px;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #003366;
}

/* Section colors */
.admin-section {
    background: #eef5ff;
}

.director-section {
    background: #f0fff4;
}

.staff-section {
    background: #fff7ed;
}

/* ===== Mobile First ===== */
.card-row {
    display: flex;
    flex-direction: column;   /* Stack cards on mobile */
    gap: 20px;
}

/* Card */
.profile-card {
    width: 100%;              /* Full width on mobile */
    max-width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-card img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* ===== Tablet (2 cards per row) ===== */
@media (min-width: 576px) {
    .card-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-card {
        width: calc(50% - 20px);
    }
}

/* ===== Desktop (3 cards per row) ===== */
@media (min-width: 992px) {
    .profile-card {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 360px) {
    .profile-card img {
        width: 100px;
        height: 130px;
    }
}
