.abib-employee-directory {
    display: grid;
    gap: 20px;
}

.abib-columns-1 {
    grid-template-columns: 1fr;
}

.abib-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.abib-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.abib-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.abib-employee-card {
    border: 1px solid #e0e0e0;
    padding: 16px;
    border-radius: 6px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.abib-employee-photo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.abib-employee-name {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 600;
}

.abib-employee-branch,
.abib-employee-license,
.abib-employee-languages,
.abib-employee-department {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

.abib-employee-contact p {
    margin: 2px 0;
    font-size: 0.9rem;
}

.abib-employee-contact a {
    color: #0066cc;
    text-decoration: none;
}

.abib-employee-contact a:hover {
    text-decoration: underline;
}

.abib-employee-bio {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #444;
}

.abib-directory-filters {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.abib-directory-filters input[type="text"],
.abib-directory-filters select {
    padding: 6px 8px;
    font-size: 0.9rem;
}

.abib-directory-filters button {
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}


/* ============================================================
   BASE STYLES (APPLY TO ALL DEVICES)
   ============================================================ */
/* ============================================================
   BASE STYLES (DESKTOP)
   ============================================================ */

.abib-employee-directory.abib-columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 20px 0;
}

.abib-employee-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.abib-employee-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Photo */
.abib-employee-photo img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
}

/* Name */
.abib-employee-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

/* Branch */
.abib-employee-branch {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
}

/* Languages */
.abib-employee-languages {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}

/* Contact */
.abib-employee-contact a {
    display: inline-block;
    padding: 8px 14px;
    margin: 4px 0;
    font-size: 0.95rem;
    border-radius: 6px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.abib-employee-contact a:hover {
    background: #ececec;
}

/* ============================================================
   TABLET (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {

    .abib-employee-directory.abib-columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 22px !important;
    }

    .abib-employee-photo img {
        width: 120px;
        height: 120px;
    }

    .abib-employee-card {
        padding: 18px;
    }
}

/* ============================================================
   MOBILE (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {

    /* Force single column */
    .abib-employee-directory.abib-columns-3 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .abib-employee-card {
        padding: 18px !important;
        border-radius: 12px;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
    }

    /* Centered photo */
    .abib-employee-photo img {
        width: 110px !important;
        height: 110px !important;
        margin: 0 auto 10px auto;
    }

    .abib-employee-name {
        font-size: 1.15rem !important;
    }

    .abib-employee-branch,
    .abib-employee-languages {
        text-align: center;
    }

    /* Large tap-friendly contact buttons */
    .abib-employee-contact a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        margin: 6px 0;
        font-size: 1rem;
        border-radius: 8px;
    }
}

/* ============================================================
   SMALL MOBILE (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {

    .abib-employee-photo img {
        width: 95px !important;
        height: 95px !important;
    }

    .abib-employee-card {
        padding: 16px !important;
    }

    .abib-employee-name {
        font-size: 1.05rem !important;
    }

    .abib-employee-contact a {
        font-size: 0.95rem;
        padding: 10px 14px;
    }
}