
/* ================= GENERAL ================= */
html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    font-family: 'Roboto', Arial, sans-serif;
    background: #f5f7fa;
}

#form1 {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.staff-page-container,
.staff-page-container * {
    box-sizing: border-box;
}

/* ================= HEADER ================= */

.staff-header {
    background: #ffffff;
    padding: 15px 0;
}

    .staff-header .row {
        align-items: center;
    }

    .staff-header img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .staff-header .logo-eu {
        width: 300px;
    }

    .staff-header .logo-aswan {
        width: 150px;
        max-height: 90px;
    }

    .staff-header .logo-center {
        max-height: 90px;
        width: auto;
    }

/* ================= NAVBAR ================= */

#ftco-navbar {
    background: #c9e3f5 !important;
    margin: 0;
    padding: 8px 0;
    position: relative;
    z-index: 100;
}

    #ftco-navbar .navbar-nav {
        align-items: center;
        flex-wrap: wrap;
    }

    #ftco-navbar .nav-link {
        color: #244b73 !important;
        font-size: 17px;
        font-weight: 600;
        padding: 12px 18px;
        transition: 0.3s;
    }

        #ftco-navbar .nav-link:hover,
        #ftco-navbar .nav-item.active .nav-link {
            color: #087bdc !important;
        }

    #ftco-navbar .login-item {
        margin-left: auto;
    }

        #ftco-navbar .login-item .nav-link {
            background: #087bdc;
            color: #ffffff !important;
            border-radius: 30px;
            padding: 12px 25px;
        }

            #ftco-navbar .login-item .nav-link:hover {
                background: #075eaa;
                color: #ffffff !important;
            }

/* ================= SEARCH ================= */

.staff-search-section {
    background: #f5f7fa;
    padding: 30px 15px 20px;
}

.staff-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 650px;
    margin: 0 auto;
}

.staff-search-input {
    width: 100%;
    max-width: 430px;
    height: 48px;
    border: 1px solid #d3dce6;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 15px;
    background: #ffffff;
    outline: none;
}

    .staff-search-input:focus {
        border-color: #087bdc;
        box-shadow: 0 0 0 3px rgba(8,123,220,0.1);
    }

.staff-search-button {
    height: 48px;
    padding: 0 25px;
    border: none;
    border-radius: 8px;
    background: #087bdc;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .staff-search-button:hover {
        background: #075eaa;
    }

/* ================= STAFF GRID ================= */

.staff-page-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 15px 20px 40px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}
/* ================= PAGINATION ================= */

.staff-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 35px 0 10px;
}

    .staff-pagination a,
    .staff-pagination span {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    .staff-pagination a {
        background: #ffffff;
        color: #087bdc;
        border: 1px solid #dbe5ef;
        cursor: pointer;
    }

        .staff-pagination a:hover {
            background: #e5f1ff;
        }

    .staff-pagination span {
        background: #087bdc;
        color: #ffffff;
        border: 1px solid #087bdc;
    }

.staff-results {
    text-align: center;
    color: #687787;
    font-size: 14px;
    margin: 0 0 15px;
}

/* ================= FOOTER ================= */

.staff-footer {
    background: #292f36;
    border-top: 4px solid #087bdc;
    padding: 20px;
    width: 100%;
}

    .staff-footer .row {
        align-items: center;
    }

    .staff-footer img {
        width: 180px;
        max-width: 100%;
        height: auto;
    }

    .staff-footer p {
        color: #ffffff;
        font-size: 13px;
        line-height: 1.8;
        margin: 0;
        overflow-wrap: anywhere;
    }

/* ================= TABLET ================= */

@media (max-width: 991px) {

    .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    #ftco-navbar .login-item {
        margin-left: 0;
    }

    .staff-header .logo-eu {
        width: 220px;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 575px) {

    .staff-header {
        padding: 12px 10px;
    }

        .staff-header .row {
            row-gap: 15px;
        }

        .staff-header .logo-eu {
            width: 200px;
        }

        .staff-header .logo-aswan,
        .staff-header .logo-center {
            max-height: 65px;
            width: auto;
        }

    #ftco-navbar .navbar-nav {
        align-items: stretch;
    }

    #ftco-navbar .nav-link {
        padding: 10px 15px;
    }

    .staff-search-section {
        padding: 20px 12px 10px;
    }

    .staff-search-form {
        gap: 8px;
    }

    .staff-search-input {
        min-width: 0;
        height: 44px;
        font-size: 14px;
    }

    .staff-search-button {
        height: 44px;
        padding: 0 15px;
        font-size: 14px;
    }

    .staff-page-container {
        padding: 12px 12px 25px;
    }

    .staff-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .staff-footer {
        padding: 20px 12px;
    }

        .staff-footer .text-center {
            text-align: center;
        }

    .staff-pagination {
        gap: 5px;
    }

        .staff-pagination a,
        .staff-pagination span {
            min-width: 35px;
            height: 36px;
            padding: 0 9px;
        }
}

.staff-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 25px 15px;
    background: #f5f7fa;
}

.staff-filter-select,
.staff-search-input {
    height: 45px;
    padding: 0 14px;
    border: 1px solid #d5dfeb;
    border-radius: 8px;
    background: #fff;
    color: #26384a;
    font-size: 14px;
    min-width: 210px;
    max-width: 100%;
    box-sizing: border-box;
}

.staff-search-input {
    width: 300px;
}

.staff-search-button,
.staff-reset-button {
    height: 45px;
    padding: 0 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #0879d1;
}

.staff-search-button {
    background: #0879d1;
    color: #fff;
}

.staff-reset-button {
    background: #fff;
    color: #0879d1;
}

.staff-search-button:hover {
    background: #0565b2;
}

.staff-reset-button:hover {
    background: #eaf4ff;
}

@media (max-width: 768px) {
    .staff-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .staff-filter-select,
    .staff-search-input,
    .staff-search-button,
    .staff-reset-button {
        width: 100%;
        min-width: 0;
    }
}

/* ===================================
   STAFF CARDS - MODERN DESIGN
=================================== */

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Card */

.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e4ebf3;
    border-radius: 18px;
    padding: 25px 20px 20px;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(20, 55, 90, 0.045);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
    height: 100%;
}

    .staff-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(20, 55, 90, 0.12);
        border-color: #b9d9f6;
    }

/* Photo */

.staff-photo-wrapper {
    width: 125px;
    height: 125px;
    min-width: 125px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    background: #eaf0f6;
    border: 5px solid #f0f5fa;
    box-shadow: 0 0 0 1px #dce6f0;
}

.staff-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.staff-card:hover .staff-photo {
    transform: scale(1.06);
}

/* Information */

.staff-info {
    width: 100%;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
    margin: 0 0 14px;
    width: 100%;
    overflow-wrap: anywhere;
}

    .staff-name a {
        color: #0879d1;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .staff-name a:hover {
            color: #064d91;
            text-decoration: underline;
        }

/* Faculty */

.staff-detail {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 15px;
    color: #52677f;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.staff-detail-icon {
    color: #0879d1;
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 2px;
}

.staff-faculty {
    color: #52677f;
}

/* Social Links */

.staff-social {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px 0 20px;
    min-height: 38px;
}

.staff-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #edf5ff;
    color: #0879d1;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .staff-social-link:hover {
        background: #0879d1;
        color: #ffffff;
        transform: translateY(-3px);
    }

/* Profile Button */

.staff-card-actions {
    width: 100%;
    margin-top: auto;
}

.staff-profile-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 15px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #edf5ff;
    border: 1px solid #dceafa;
    color: #0879d1;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .staff-profile-button:hover {
        background: #0879d1;
        border-color: #0879d1;
        color: #ffffff;
        text-decoration: none;
    }

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 1200px) {
    .staff-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .staff-card {
        padding: 22px 15px 18px;
    }
}

@media (max-width: 576px) {
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .staff-card {
        padding: 22px 18px;
    }

    .staff-photo-wrapper {
        width: 110px;
        height: 110px;
        min-width: 110px;
    }

    .staff-name {
        font-size: 17px;
    }
}
