/* =============================================================
   Staff / Faculty Profile Page  —  sp-* scope
   Consistent with site's vpd-* and dept-* design language.
   Does NOT affect header, footer, or other pages.
   ============================================================= */

/* ── 1. Title bar ── */
.sp-title-bar {
    background: #ffffff;
    border-bottom: 2px solid #e4ecf7;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(21, 49, 84, 0.05);
}
p{
    margin:0;
}

.sp-title-bar__inner {
    display: flex;
    align-items: center;
    gap: 13px;
}

.sp-title-bar__accent {
    display: inline-block;
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, #153154 0%, #2a6fc9 100%);
    border-radius: 4px;
    flex-shrink: 0;
}

.sp-title-bar__text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #153154;
    margin: 0;
    letter-spacing: 0.015em;
    font-family: var(--font__inter, 'Inter', sans-serif);
}

/* ── 2. Section wrapper ── */
.sp-section {
    padding: 36px 0 60px;
    background: #eef2f9;
    background-image:
        radial-gradient(circle at 8% 15%, rgba(28, 79, 139, 0.04) 0%, transparent 55%),
        radial-gradient(circle at 92% 85%, rgba(21, 49, 84, 0.04) 0%, transparent 55%);
}

/* ── 3. Sidebar ── */
.sp-sidebar {
    position: sticky;
    top: 90px;
}

/* ── 4. Profile card shell ── */
.sp-profile-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dde6f5;
    border-top: 4px solid #1c4f8b;
    box-shadow:
        0 1px 3px rgba(21, 49, 84, 0.06),
        0 8px 32px rgba(21, 49, 84, 0.09);
}

/* ── 5. Hero section ── */
.sp-hero {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 32px 36px 28px;
    background: linear-gradient(135deg, #f8fafd 0%, #eef4ff 100%);
    border-bottom: 1px solid #e4ecf7;
}

/* Photo */
.sp-hero__photo-wrap {
    flex-shrink: 0;
    width: 150px;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow:
        0 4px 12px rgba(21, 49, 84, 0.15),
        0 0 0 1px #dde6f5;
}

.sp-hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Identity */
.sp-hero__identity {
    flex: 1;
    min-width: 0;
}

.sp-hero__name {
    font-size: 1.55rem;
    font-weight: 800;
    color: #153154;
    line-height: 1.25;
    margin: 0 0 10px;
    font-family: var(--font__inter, 'Inter', sans-serif);
    letter-spacing: -0.01em;
}

.sp-hero__badge {
    display: inline-block;
    background: linear-gradient(90deg, #153154, #1c4f8b);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-family: var(--font__inter, 'Inter', sans-serif);
}

.sp-hero__dept {
    font-size: 0.88rem;
    color: #4b5563;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font__inter, 'Inter', sans-serif);
}

.sp-hero__dept i {
    color: #1c4f8b;
    font-size: 0.9rem;
}

/* Contact pills */
.sp-hero__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: var(--font__inter, 'Inter', sans-serif);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-contact-pill:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.sp-contact-pill--email {
    background: #eef4ff;
    color: #1c4f8b;
    border: 1px solid #c3d9f5;
}

.sp-contact-pill--phone {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sp-contact-pill i {
    font-size: 0.78rem;
    flex-shrink: 0;
}

/* ── 6. Details table ── */
.sp-details {
    padding: 28px 36px 32px;
    font-family: var(--font__inter, 'Inter', sans-serif);
}

.sp-detail-row {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #f0f4fb;
    transition: background 0.15s ease;
}

.sp-detail-row:last-child {
    border-bottom: none;
}

.sp-detail-row:hover {
    background: #f8fafd;
    border-radius: 8px;
}

.sp-detail-row__label {
    width: 220px;
    min-width: 220px;
    padding: 2px 16px 2px 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #153154;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: flex-start;
    /*padding-top: 14px;*/
}

/* Colon separator */
.sp-detail-row__label::after {
    content: ':';
    margin-left: auto;
    padding-right: 16px;
    font-weight: 400;
    color: #9ca3af;
}

.sp-detail-row__value {
    flex: 1;
    padding: 2px 0;
    font-size: 0.93rem;
    color: #374151;
    line-height: 1.7;
    word-break: break-word;
}

.sp-detail-row__value a {
    color: #1c4f8b;
    text-decoration: none;
    border-bottom: 1px solid rgba(28, 79, 139, 0.3);
    transition: border-color 0.2s;
}

.sp-detail-row__value a:hover {
    border-bottom-color: #153154;
    color: #153154;
}

/* ── 7. Responsive ── */
@media (max-width: 991.98px) {
    .sp-section {
        padding: 24px 0 44px;
    }

    .sp-sidebar {
        position: static;
    }

    .sp-hero {
        padding: 24px 24px 22px;
        gap: 20px;
    }

    .sp-details {
        padding: 22px 24px 26px;
    }
}

@media (max-width: 767.98px) {
    .sp-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }

    .sp-hero__photo-wrap {
        width: 130px;
        height: 150px;
    }

    .sp-hero__dept {
        justify-content: center;
    }

    .sp-hero__contact {
        justify-content: center;
    }

    .sp-detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .sp-detail-row__label {
        width: 100%;
        min-width: unset;
        padding: 12px 0 0;
        font-size: 0.78rem;
    }

    .sp-detail-row__label::after {
        display: none;
    }

    .sp-detail-row__value {
        padding: 4px 0 12px;
    }

    .sp-title-bar__text {
        font-size: 0.97rem;
    }
}

@media (max-width: 575.98px) {
    .sp-section {
        padding: 18px 0 36px;
    }

    .sp-hero {
        padding: 20px 16px 18px;
    }

    .sp-details {
        padding: 16px 16px 20px;
    }

    .sp-hero__name {
        font-size: 1.3rem;
    }

    .sp-profile-card {
        border-radius: 12px;
        border-top-width: 3px;
    }

    .sp-contact-pill {
        font-size: 0.76rem;
        padding: 5px 11px;
    }
}