/* =====================================================================
   STAFF / FACULTY PAGE — Redesigned Styles
   ===================================================================== */

:root {
    --staff-navy: #040d4e;
    --staff-blue: #14259b;
    --staff-gold: #f2b21b;
    --staff-gold-dark: #c8860a;
    --staff-red: #be2030;
    --staff-text: #1f2937;
    --staff-muted: #6b7280;
    --staff-light: #f5f7fb;
    --staff-white: #ffffff;
    --staff-border: #e5e9f8;
    --staff-shadow: 0 10px 30px rgba(4, 13, 78, 0.08);
    --staff-shadow-lg: 0 16px 40px rgba(4, 13, 78, 0.12);
    --staff-radius: 18px;
    --staff-radius-sm: 8px;
    --staff-transition: 0.25s ease;
    --staff-font: "Poppins", sans-serif;
}

/* =====================================================================
   HERO / BREADCRUMB
   ===================================================================== */
.staff-hero-section {
    position: relative;
    background: linear-gradient(135deg, #040d4e 0%, #14259b 60%, #1a3fbd 100%);
    padding: 55px 0 45px;
    overflow: hidden;
}

.staff-hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.staff-hero-pattern {
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(242, 178, 27, 0.08);
    pointer-events: none;
}

.staff-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.staff-hero-title {
    font-family: var(--staff-font);
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
}

.staff-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-family: var(--staff-font);
}

.staff-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--staff-transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.staff-breadcrumb a:hover { color: var(--staff-gold); }

.staff-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

.staff-breadcrumb-current {
    color: var(--staff-gold);
    font-weight: 600;
}

/* =====================================================================
   CONTENT SECTION
   ===================================================================== */
.staff-content-section {
    background: var(--staff-light);
    padding: 40px 0 60px;
}

.staff-grid-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* ── Count Bar ── */
.staff-count-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: var(--staff-white);
    border: 1px solid var(--staff-border);
    border-radius: var(--staff-radius-sm);
    margin-bottom: 20px;
    font-family: var(--staff-font);
    font-size: 13px;
    color: var(--staff-muted);
    box-shadow: var(--staff-shadow);
}

.staff-count-bar i {
    color: var(--staff-blue);
    margin-right: 6px;
}

.staff-count-bar strong {
    color: var(--staff-navy);
    font-size: 15px;
}

/* ── Staff List ── */
.staff-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Staff Card ── */
.staff-card {
    display: flex;
    gap: 28px;
    padding: 28px;
    background: var(--staff-white);
    border: 1px solid var(--staff-border);
    border-radius: var(--staff-radius);
    box-shadow: var(--staff-shadow);
    transition: var(--staff-transition);
    position: relative;
    overflow: hidden;
}

.staff-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--staff-gold);
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: var(--staff-transition);
}

.staff-card:hover {
    box-shadow: var(--staff-shadow-lg);
    transform: translateY(-2px);
}

.staff-card:hover::before {
    opacity: 1;
}

/* Photo */
.staff-card-photo {
    flex-shrink: 0;
}

.staff-card-photo img {
    width: 130px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--staff-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Info */
.staff-card-info {
    flex: 1;
    min-width: 0;
}

.staff-card-name {
    font-family: var(--staff-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--staff-navy);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-card-name i {
    color: var(--staff-gold);
    font-size: 16px;
}

.staff-card-designation {
    display: inline-block;
    font-family: var(--staff-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--staff-blue);
    background: #e9ebff;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* Detail Items */
.staff-card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.staff-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.staff-detail-label {
    font-family: var(--staff-font);
    font-size: 11px;
    font-weight: 700;
    color: var(--staff-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.staff-detail-label i {
    color: var(--staff-blue);
    font-size: 11px;
}

.staff-detail-value {
    font-family: var(--staff-font);
    font-size: 13px;
    color: var(--staff-text);
    line-height: 1.5;
    word-break: break-word;
}

a.staff-detail-value {
    color: var(--staff-blue);
    text-decoration: none;
    transition: var(--staff-transition);
}

a.staff-detail-value:hover {
    color: var(--staff-gold-dark);
    text-decoration: underline;
}

/* =====================================================================
   SIDEBAR
   ===================================================================== */
.staff-sidebar-card {
    background: var(--staff-white);
    border: 1px solid var(--staff-border);
    border-radius: var(--staff-radius);
    box-shadow: var(--staff-shadow);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.staff-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--staff-navy);
    color: var(--staff-white);
}

.staff-sidebar-header i {
    color: var(--staff-gold);
    font-size: 16px;
}

.staff-sidebar-header h4 {
    font-family: var(--staff-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--staff-white);
    margin: 0;
}

.staff-sidebar-body {
    padding: 10px 0;
}

.staff-sidebar-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.staff-sidebar-body ul li {
    border-bottom: 1px solid var(--staff-border);
}

.staff-sidebar-body ul li:last-child {
    border-bottom: none;
}

.staff-sidebar-body ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-family: var(--staff-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--staff-text);
    text-decoration: none;
    transition: var(--staff-transition);
}

.staff-sidebar-body ul li a::before {
    content: "\f105";
    font-family: "FontAwesome";
    color: var(--staff-blue);
    font-size: 12px;
    flex-shrink: 0;
}

.staff-sidebar-body ul li a:hover {
    background: var(--staff-light);
    color: var(--staff-blue);
    padding-left: 24px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991px) {
    .staff-grid-layout {
        grid-template-columns: 1fr;
    }

    .staff-sidebar-card {
        position: static;
    }

    .staff-hero-title {
        font-size: 28px;
    }

    .staff-card-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .staff-hero-section {
        padding: 35px 0 28px;
    }

    .staff-hero-title {
        font-size: 22px;
    }

    .staff-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 18px;
        gap: 18px;
    }

    .staff-card-name {
        justify-content: center;
        font-size: 15px;
    }

    .staff-card-details {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .staff-card-photo img {
        width: 110px;
        height: 130px;
    }

    .staff-breadcrumb {
        font-size: 11px;
        padding: 8px 14px;
        gap: 6px;
    }

    .staff-content-section {
        padding: 24px 0 40px;
    }
}

@media (max-width: 480px) {
    .staff-hero-title {
        font-size: 19px;
    }

    .staff-card {
        padding: 18px 14px;
    }

    .staff-card-name {
        font-size: 14px;
    }

    .staff-card-designation {
        font-size: 12px;
    }

    .staff-detail-value {
        font-size: 12px;
    }
}
