/* ═══════════════════════════════════════════════
   OUR TEAM SECTION
═══════════════════════════════════════════════ */
.team-section {
    padding: 72px 0 88px;
    background: linear-gradient(175deg, #f8faff 0%, #edf2ff 100%);
    position: relative;
    overflow: hidden;
}

.team-section::before,
.team-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: #1e3a8a;
    opacity: 0.05;
}
.team-section::before { width: 600px; height: 600px; top: -220px; right: -160px; }
.team-section::after  { width: 420px; height: 420px; bottom: -160px; left: -120px; }

/* ── Card ────────────────────────────────────── */
.team-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 36px 22px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(30,58,110,0.07), 0 8px 28px rgba(30,58,110,0.06);
    text-decoration: none !important;
    color: inherit;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.12s ease;
    will-change: transform, box-shadow;
}

.team-card:hover {
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 40%);
    box-shadow:
        0 0 0 1.5px rgba(59,115,200,0.25),
        0 16px 48px rgba(30,58,110,0.15),
        0 4px 16px rgba(30,58,110,0.08);
    color: inherit;
}

/* ── Avatar ──────────────────────────────────── */
.team-card-avatar-wrap {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 18px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 18px rgba(30,58,110,0.18);
    transition:
        transform 0.38s cubic-bezier(0.34,1.56,0.64,1),
        box-shadow 0.38s ease;
}
.team-card:hover .team-card-avatar-wrap {
    transform: translateY(-5px) scale(1.07);
    box-shadow: 0 12px 32px rgba(30,58,110,0.25);
}
.team-card-avatar-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.team-card:hover .team-card-avatar-wrap img { transform: scale(1.07); }

.team-card-initials {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 800;
    color: #fff; border-radius: 50%;
    letter-spacing: -0.02em;
}

/* ── Card body ───────────────────────────────── */
.team-card-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    font-family: "Nunito", sans-serif;
    line-height: 1.25;
    transition: color 0.25s ease;
}
.team-card:hover .team-card-name { color: #1e3a8a; }

.team-card-designation {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.18);
    border-radius: 999px;
    padding: 3px 12px;
    margin-bottom: 10px;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.team-card:hover .team-card-designation {
    background: rgba(37,99,235,0.13);
    border-color: rgba(37,99,235,0.32);
}

.team-card-department {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 18px;
}
.team-card-department i { font-size: 0.72rem; opacity: 0.7; }

/* ── CTA button ──────────────────────────────── */
.team-card-footer {
    width: 100%;
    margin-top: auto;
}

.team-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 0;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1e3a8a;
    background: rgba(30,58,138,0.06);
    border: 1.5px solid rgba(30,58,138,0.14);
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.team-view-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a8a, #3b73c8);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 0;
}
.team-card:hover .team-view-btn::before { transform: translateY(0); }
.team-card:hover .team-view-btn { color: #fff; border-color: transparent; }

.team-view-btn span,
.team-view-btn i {
    position: relative; z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.team-card:hover .team-view-btn i { transform: translateX(5px); }

/* ═══════════════════════════════════════════════
   AVATAR COLOUR PALETTE
═══════════════════════════════════════════════ */
.av-0 { background: linear-gradient(135deg, #3b73c8, #1e3a8a); }
.av-1 { background: linear-gradient(135deg, #f97316, #c2410c); }
.av-2 { background: linear-gradient(135deg, #10b981, #065f46); }
.av-3 { background: linear-gradient(135deg, #f59e0b, #d97706); color:#1a1a1a !important; }
.av-4 { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.av-5 { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.av-6 { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.av-7 { background: linear-gradient(135deg, #ec4899, #9d174d); }

/* ═══════════════════════════════════════════════
   VIEW STAFF — PROFILE PAGE
═══════════════════════════════════════════════ */
.staff-profile-hero {
    background: linear-gradient(140deg, #0f2147 0%, #1e3a8a 45%, #3b73c8 85%, #60a5fa 100%);
    padding: 76px 0 96px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.staff-profile-hero::before,
.staff-profile-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
    background: #fff;
}
.staff-profile-hero::before { width:500px; height:500px; top:-160px; right:-100px; }
.staff-profile-hero::after  { width:320px; height:320px; bottom:-100px; left:-80px; }

.staff-profile-photo-wrap {
    width: 136px; height: 136px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.55);
    overflow: hidden;
    margin: 0 auto 22px;
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 12px rgba(255,255,255,0.07), 0 20px 60px rgba(0,0,0,0.28);
    position: relative; z-index: 1;
    transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.staff-profile-photo-wrap:hover {
    transform: scale(1.07);
    box-shadow: 0 0 0 18px rgba(255,255,255,0.1), 0 24px 64px rgba(0,0,0,0.32);
}
#profilePhoto {
    width: 100%;
    height: 100%;
    display: block;
}
.staff-profile-photo-wrap img { width:100%; height:100%; object-fit:cover; display:block; }

.staff-profile-initials {
    width:100%; height:100%;
    display:flex; align-items:center; justify-content:center;
    font-size:3.2rem; font-weight:800; color:#fff; letter-spacing:-0.03em;
}

.staff-profile-name {
    font-size:2.2rem; font-weight:800; margin-bottom:8px;
    letter-spacing:-0.03em; font-family:"Nunito",sans-serif;
    position:relative; z-index:1;
    text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.staff-profile-designation {
    font-size:1rem; font-weight:500; opacity:0.88;
    margin-bottom:16px; position:relative; z-index:1;
}
.staff-profile-dept-badge {
    display:inline-flex; align-items:center; gap:7px;
    background:rgba(255,255,255,0.15);
    border:1px solid rgba(255,255,255,0.35);
    color:#fff; border-radius:999px; padding:6px 22px;
    font-size:0.83rem; font-weight:600;
    backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    position:relative; z-index:1;
    transition: background 0.25s ease;
}
.staff-profile-dept-badge:hover { background:rgba(255,255,255,0.25); }

.staff-profile-wave {
    position:absolute; bottom:-1px; left:0; width:100%; line-height:0; z-index:2;
}

.staff-profile-body {
    padding:54px 0 68px;
    background:linear-gradient(180deg,#edf2ff 0%,#f8fafc 100%);
}
.staff-info-card {
    background:#fff; border-radius:18px;
    box-shadow:0 2px 8px rgba(30,58,110,0.05), 0 12px 32px rgba(30,58,110,0.06);
    padding:28px 30px; height:100%;
    border:1px solid rgba(37,99,235,0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.staff-info-card:hover {
    box-shadow:0 4px 16px rgba(30,58,110,0.09), 0 20px 48px rgba(30,58,110,0.09);
    transform:translateY(-3px);
}
.staff-info-card-title {
    font-size:0.68rem; font-weight:800; text-transform:uppercase;
    letter-spacing:0.13em; color:#2563eb;
    margin-bottom:20px; padding-bottom:13px;
    border-bottom:2px solid #eff2fb;
    display:flex; align-items:center; gap:8px;
}
.staff-info-row {
    display:flex; align-items:flex-start; gap:14px;
    margin-bottom:16px; font-size:.88rem; color:#374151;
}
.staff-info-row i {
    color:#2563eb; font-size:1rem; flex-shrink:0;
    margin-top:3px; width:18px; text-align:center; opacity:0.8;
}
.staff-info-label {
    font-weight:700; font-size:0.7rem; text-transform:uppercase;
    letter-spacing:0.07em; color:#94a3b8; display:block; margin-bottom:2px;
}
.staff-info-value { color:#1e293b; font-weight:500; display:block; }
.staff-role-desc  { font-size:.9rem; color:#4b5563; line-height:1.8; }

.connect-btn {
    display:inline-flex; align-items:center; gap:7px;
    padding:8px 20px; border-radius:999px;
    font-size:0.8rem; font-weight:600; border:1.5px solid;
    transition:all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    text-decoration:none !important;
}
.connect-btn:hover {
    transform:translateY(-2px) scale(1.05);
    box-shadow:0 6px 18px rgba(30,58,110,0.16);
}

.staff-not-found { text-align:center; padding:120px 20px; color:#6b7280; }
.staff-not-found i { font-size:5rem; color:#d1d5db; display:block; margin-bottom:20px; }

/* ═══════════════════════════════════════════════
   SKELETON LOADER
═══════════════════════════════════════════════ */
@keyframes sk-shimmer {
    0%   { background-position: -700px 0; }
    100% { background-position:  700px 0; }
}
.sk-avatar,.sk-line,.sk-badge,.sk-btn {
    border-radius:8px; animation:sk-shimmer 1.5s infinite linear; background-size:700px 100%;
}
.staff-profile-hero .sk-avatar,
.staff-profile-hero .sk-line,
.staff-profile-hero .sk-badge {
    background-image:linear-gradient(90deg,rgba(255,255,255,0.08) 25%,rgba(255,255,255,0.22) 50%,rgba(255,255,255,0.08) 75%);
}
.staff-profile-body .sk-line,
.staff-profile-body .sk-btn {
    background-image:linear-gradient(90deg,#e2e8f3 25%,#f1f5fb 50%,#e2e8f3 75%);
}
.sk-avatar { width:136px; height:136px; border-radius:50%; display:block; }
.sk-line   { height:14px; border-radius:7px; }
.sk-line-sm{ width:38%; height:11px; }
.sk-line-md{ width:52%; }
.sk-line-lg{ width:52%; height:22px; }
.sk-badge  { width:130px; height:30px; border-radius:999px; display:block; }
.sk-btn    { width:105px; height:36px; border-radius:999px; display:inline-block;
             background-image:linear-gradient(90deg,#e2e8f3 25%,#f1f5fb 50%,#e2e8f3 75%); }

@media (max-width:576px) {
    .staff-profile-name { font-size:1.55rem; }
    .staff-profile-hero { padding:52px 0 76px; }
    .staff-info-card    { padding:20px; }
}
