/* ===== Faculty pages (faculty.php + faculty-profile.php) ===== */
:root {
    --fc-primary: var(--primary, #1565c0);
    --fc-accent: var(--accent, #ff6b35);
    --fc-dark: #0f172a;
    --fc-ink: #1f2937;
    --fc-muted: #6b7280;
    --fc-bg: #f7f9fc;
    --fc-r: 20px;
    --fc-shadow: 0 10px 30px -14px rgba(15, 23, 42, .25);
    --fc-shadow-lift: 0 24px 45px -20px rgba(15, 23, 42, .38);
}
body { background: var(--fc-bg); }
.fc-section { padding: 56px 0; }
.fc-heading { text-align: center; margin-bottom: 32px; }
.fc-heading h2 { font-weight: 800; letter-spacing: -.02em; color: var(--fc-dark); margin: 0; }
.fc-heading h2::after { content: ''; display: block; width: 60px; height: 5px; margin: 12px auto 0; border-radius: 99px; background: linear-gradient(135deg, #ff6b35, #ff8359); }
.fc-heading p { margin: 12px 0 0; color: var(--fc-muted); }

/* ---- hero ---- */
.fc-hero, .fp-hero {
    color: #fff;
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(255, 107, 53, .28), transparent 60%),
        linear-gradient(135deg, #0f172a 0%, #12386b 55%, #1565c0 100%);
    padding: 44px 0 96px;
}
.fc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .85rem; opacity: .9; }
.fc-crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.fc-crumbs a { color: #fff; text-decoration: none; }
.fc-crumbs a:hover { text-decoration: underline; }
.fc-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin: 0 0 8px; }
.fc-hero h1 span { color: #ffb38f; }
.fc-hero-sub { font-size: 1.05rem; opacity: .9; margin: 0; }
.fc-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.fc-stats div { min-width: 120px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fc-stats strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.fc-stats span { font-size: .8rem; opacity: .85; }

/* ---- photo (initials sit behind the <img>) ---- */
.fc-photo { position: relative; overflow: hidden; background: linear-gradient(145deg, #dbe7f7, #c5d8f0); display: grid; place-items: center; }
.fc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 1; }
.fc-initials { font-weight: 800; color: #1565c0; opacity: .75; letter-spacing: .04em; }
.fc-photo-lg { aspect-ratio: 4 / 4.2; }
.fc-photo-lg .fc-initials { font-size: 4rem; }
.fc-photo-sm { aspect-ratio: 1 / 1; }
.fc-photo-sm .fc-initials { font-size: 2.6rem; }

/* ---- leadership cards ---- */
.fc-lead-wrap { margin-top: -60px; padding-top: 0; }
.fc-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.fc-leader { background: #fff; border-radius: var(--fc-r); overflow: hidden; box-shadow: var(--fc-shadow); transition: transform .35s ease, box-shadow .35s ease; }
.fc-leader:hover { transform: translateY(-8px); box-shadow: var(--fc-shadow-lift); }
.fc-leader > a { display: block; color: inherit; text-decoration: none; height: 100%; }
.fc-leader .fc-photo img { transition: transform .6s ease; }
.fc-leader:hover .fc-photo img { transform: scale(1.05); }
.fc-leader-body { padding: 20px 22px 24px; text-align: center; }
.fc-leader-body h3 { font-size: 1.3rem; font-weight: 800; color: var(--fc-dark); margin: 10px 0 6px; }
.fc-badge { display: inline-block; padding: 4px 14px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #1565c0, #42a5f5); }
.fc-role-director .fc-badge { background: linear-gradient(135deg, #ff6b35, #ff8359); }
.fc-role-vice_principal .fc-badge { background: linear-gradient(135deg, #00897b, #26a69a); }
.fc-qual { font-size: .88rem; color: #374151; margin: 0 0 6px; }
.fc-qual i { color: var(--fc-primary); margin-right: 4px; }
.fc-tag { font-size: .85rem; color: var(--fc-muted); margin: 0 0 14px; }
.fc-go { font-weight: 700; font-size: .88rem; color: var(--fc-primary); }
.fc-go i { margin-left: 4px; transition: transform .25s ease; }
.fc-leader:hover .fc-go i { transform: translateX(4px); }

/* ---- toolbar ---- */
.fc-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fc-search { position: relative; flex: 1 1 260px; max-width: 360px; margin: 0; }
.fc-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--fc-muted); }
.fc-search input { width: 100%; padding: 11px 16px 11px 42px; border: 1px solid #e2e8f0; border-radius: 99px; background: #fff; outline: none; transition: box-shadow .2s, border-color .2s; }
.fc-search input:focus { border-color: var(--fc-primary); box-shadow: 0 0 0 4px rgba(21, 101, 192, .15); }
.fc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-pill { border: 1px solid #dbe3ee; background: #fff; color: #334155; padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: .85rem; cursor: pointer; transition: all .2s ease; }
.fc-pill em { font-style: normal; font-size: .75rem; margin-left: 4px; opacity: .65; }
.fc-pill:hover { border-color: var(--fc-primary); color: var(--fc-primary); }
.fc-pill.active { background: var(--fc-primary); border-color: var(--fc-primary); color: #fff; box-shadow: 0 8px 16px -8px rgba(21, 101, 192, .8); }
.fc-count { font-size: .8rem; color: var(--fc-muted); margin: 0 0 18px; }

/* ---- staff grid ---- */
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.fc-staff-card { display: block; background: #fff; border-radius: var(--fc-r); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--fc-shadow); transition: transform .3s ease, box-shadow .3s ease; }
.fc-staff-card[hidden] { display: none; }
.fc-staff-card:hover { transform: translateY(-6px); box-shadow: var(--fc-shadow-lift); color: inherit; }
.fc-staff-card .fc-photo img { transition: transform .5s ease; }
.fc-staff-card:hover .fc-photo img { transform: scale(1.06); }
.fc-staff-body { padding: 14px 16px 18px; }
.fc-staff-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--fc-dark); margin: 0 0 6px; }
.fc-chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; color: var(--fc-primary); background: rgba(21, 101, 192, .1); }
.fc-staff-body .fc-qual { margin: 8px 0 0; font-size: .82rem; color: var(--fc-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-subj { margin: 6px 0 0; font-size: .8rem; color: #0f766e; }
.fc-empty { text-align: center; padding: 48px 16px; color: var(--fc-muted); }
.fc-empty i { font-size: 2.2rem; opacity: .6; margin-bottom: 10px; display: block; }

/* ---- CTA ---- */
.fc-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 32px 36px; border-radius: 28px; color: #fff; background: radial-gradient(500px 250px at 90% 100%, rgba(255, 107, 53, .35), transparent 60%), linear-gradient(135deg, #1565c0, #0d47a1); box-shadow: var(--fc-shadow-lift); }
.fc-cta h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 4px; }
.fc-cta p { margin: 0; opacity: .9; }

/* =====================================================================
   PROFILE PAGE — premium redesign (faculty-profile.php)
   ===================================================================== */
.fpx-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 44px 0 54px;
    background:
        radial-gradient(700px 360px at 88% -10%, rgba(255, 107, 53, .30), transparent 60%),
        radial-gradient(600px 320px at -5% 110%, rgba(66, 165, 245, .25), transparent 60%),
        linear-gradient(135deg, #0b1224 0%, #0f2f5e 55%, #1565c0 100%);
}
.fpx-hero-lead {
    background:
        radial-gradient(700px 360px at 88% -10%, rgba(255, 179, 143, .35), transparent 60%),
        radial-gradient(600px 320px at -5% 110%, rgba(66, 165, 245, .3), transparent 60%),
        linear-gradient(135deg, #0b1224 0%, #123a75 55%, #1565c0 100%);
}
.fpx-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; }
.fpx-orb-1 { width: 260px; height: 260px; right: -60px; top: -80px; background: radial-gradient(circle, rgba(255, 107, 53, .5), transparent 70%); }
.fpx-orb-2 { width: 220px; height: 220px; left: -70px; bottom: -90px; background: radial-gradient(circle, rgba(66, 165, 245, .45), transparent 70%); }

.fpx-head { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
.fpx-photo-wrap { position: relative; flex: 0 0 auto; }
.fpx-photo {
    width: 176px; height: 200px; border-radius: 26px;
    border: 4px solid rgba(255, 255, 255, .55);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .65), 0 0 0 8px rgba(255, 255, 255, .06);
}
.fpx-photo .fc-initials { font-size: 3rem; }
.fpx-head-text { flex: 1 1 320px; min-width: 0; position: relative; z-index: 1; }
.fpx-head-text h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; margin: 12px 0 8px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.fpx-qual { margin: 0 0 18px; opacity: .92; font-size: 1rem; }
.fpx-qual i { margin-right: 6px; color: #ffb38f; }
.fpx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fpx-actions .btn { border-radius: 99px; font-weight: 600; padding: 10px 26px; }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.fpx-stats {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px; margin-top: 34px;
}
.fpx-stat {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.fpx-stat i { font-size: 1.15rem; color: #ffb38f; width: 22px; text-align: center; }
.fpx-stat strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.fpx-stat span { font-size: .74rem; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }

.fpx-body { padding-top: 46px; }
.fpx-card {
    background: #fff; border-radius: 22px; padding: 26px 28px;
    margin-bottom: 22px; box-shadow: var(--fc-shadow);
    border: 1px solid rgba(15, 23, 42, .04);
}
.fpx-card h2 {
    font-size: 1.15rem; font-weight: 800; color: var(--fc-dark);
    margin: 0 0 16px; display: flex; align-items: center; gap: 12px;
}
.fpx-ico {
    display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 11px; font-size: .95rem; color: #fff; flex: 0 0 auto;
    background: linear-gradient(135deg, #1565c0, #42a5f5);
}
.fpx-card p { color: #374151; line-height: 1.85; margin: 0; }

.fpx-message {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #eef6ff 0%, #fff 60%);
    border: 1px solid rgba(21, 101, 192, .12);
}
.fpx-message h2 { color: var(--fc-primary); }
.fpx-quote-mark { position: absolute; top: -6px; right: 14px; font-size: 5rem; color: rgba(21, 101, 192, .07); line-height: 1; }
.fpx-message blockquote { position: relative; margin: 0; font-size: 1.08rem; line-height: 1.9; color: #1f2937; }
.fpx-sign { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed #dbe3ee; }
.fpx-sign-photo { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; }
.fpx-sign-photo .fc-initials { font-size: 1.1rem; }
.fpx-sign strong { display: block; color: var(--fc-dark); font-size: .92rem; }
.fpx-sign span { font-size: .78rem; color: var(--fc-muted); }

.fpx-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.fpx-timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#1565c0, #e2e8f0); }
.fpx-timeline li { position: relative; padding: 0 0 18px 26px; color: #374151; line-height: 1.6; }
.fpx-timeline li:last-child { padding-bottom: 0; }
.fpx-tdot { position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #1565c0; box-shadow: 0 0 0 4px rgba(21, 101, 192, .15); }

.fpx-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.fpx-tags span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 99px; font-weight: 600; font-size: .85rem; color: #0f766e; background: rgba(0, 137, 123, .1); }

.fpx-achieve { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fpx-achieve li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff8ee; }
.fpx-achieve i { color: #d97706; margin-top: 2px; }
.fpx-achieve span { color: #374151; line-height: 1.55; }

.fpx-soon { display: flex; align-items: center; gap: 14px; color: var(--fc-muted); }
.fpx-soon i { font-size: 1.4rem; }

.fpx-side { position: sticky; top: 100px; display: grid; gap: 22px; }
.fpx-quickcard .fpx-dl { display: grid; gap: 0; }
.fpx-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #e5e7eb; }
.fpx-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.fpx-dl dt { margin: 0; color: var(--fc-muted); font-size: .85rem; font-weight: 600; }
.fpx-dl dd { margin: 0; color: var(--fc-ink); font-weight: 700; text-align: right; overflow-wrap: anywhere; }

.fpx-contactcard { background: linear-gradient(160deg, #0f172a, #123a75); color: #fff; border: 0; }
.fpx-contactcard h2 { color: #fff; }
.fpx-contactcard .fpx-ico { background: rgba(255, 255, 255, .14); }
.fpx-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: .9rem; }
.fpx-contact li { display: flex; gap: 12px; align-items: flex-start; }
.fpx-contact i { color: #ffb38f; margin-top: 3px; width: 16px; text-align: center; flex: 0 0 auto; }
.fpx-contact a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.fpx-contact a:hover { text-decoration: underline; }
.fpx-contact span { color: rgba(255, 255, 255, .9); overflow-wrap: anywhere; }
.fpx-contact small { display: block; color: rgba(255, 255, 255, .6); font-size: .72rem; margin-top: 2px; }

@media (max-width: 576px) {
    .fc-section { padding: 40px 0; }
    .fc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .fc-staff-body { padding: 12px 12px 14px; }
    .fc-staff-body h3 { font-size: .95rem; }
    .fpx-head { flex-direction: column; text-align: center; align-items: center; }
    .fpx-actions { justify-content: center; }
    .fpx-photo { width: 172px; height: 190px; }
    .fpx-stats { grid-template-columns: repeat(2, 1fr); }
    .fc-cta { padding: 26px 22px; }
    .fpx-side { position: static; }
    .fpx-card { padding: 22px 20px; }
    .fpx-dl > div { flex-direction: column; gap: 2px; }
    .fpx-dl dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .fc-leader, .fc-staff-card, .fc-photo img, .fc-go i { transition: none !important; } }
