/* Faculty profile page (/facultyDetails?facultyId=..., jsp/facultydetails.jsp). Look only, everything under .fp-page:
   header card with photo, name, designation, department and contact chips; section cards; Downloads list. */
.fp-page { --fp-navy: #0d2847; --fp-blue: #285690; --fp-gold: #e0a526; --fp-ink: #1f2a3d; --fp-muted: #5d6b82;
           --fp-line: #e3e8f0; --fp-soft: #f4f7fb; padding-top: 28px; padding-bottom: 40px;
           font-family: 'Inter', 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--fp-ink); }
.fp-page > .grid { gap: 28px; align-items: start; }
.fp-page aside.col-span-1 { padding: 0; }

/* editor links (own profile / admin): small outline buttons */
.fp-page .fp-actions { display: flex; flex-flow: row wrap; gap: 8px; margin-bottom: 18px; }
.fp-page .fp-actions strong { font-weight: 600; }
.fp-page .fp-actions a { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid #c9d4e4; border-radius: 999px;
           background: #fff; color: var(--fp-blue) !important; font-size: 13.5px; text-decoration: none !important;
           transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.fp-page .fp-actions a:hover { background: var(--fp-blue); border-color: var(--fp-blue); color: #fff !important; }

/* Profile / Downloads: in-page navigation (both sections are on the page, the buttons jump to them) */
.fp-page .fp-tabs { display: flex; justify-content: flex-start; gap: 6px; margin: 0 0 18px; padding: 5px; width: max-content; max-width: 100%;
           border: 1px solid var(--fp-line); border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(13, 40, 71, .05); list-style: none; }
.fp-page .fp-tabs li { margin: 0; }
.fp-page .fp-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px !important; border-radius: 999px !important;
           background: transparent !important; color: var(--fp-blue) !important; font-size: 14px; font-weight: 600; box-shadow: none !important;
           transition: background-color .2s ease, color .2s ease; }
.fp-page .fp-tabs li.active a, .fp-page .fp-tabs a:hover { background: var(--fp-blue) !important; color: #fff !important; }

/* header card */
.fp-page .fp-hero { position: relative; display: flex; gap: 28px; align-items: center; margin-bottom: 24px; padding: 28px;
           border: 1px solid var(--fp-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(13, 40, 71, .08); overflow: hidden; }
.fp-page .fp-hero::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px;
           background: linear-gradient(90deg, var(--fp-navy), var(--fp-blue)); }
.fp-page .fp-photo { flex: 0 0 auto; }
.fp-page .fp-photo img { display: block; width: 180px !important; height: 210px !important; margin: 0 !important; object-fit: cover;
           border-radius: 14px; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--fp-line), 0 10px 24px rgba(13, 40, 71, .16); background: var(--fp-soft); }
.fp-page .fp-info { min-width: 0; }
.fp-page .fp-kicker { margin: 0 0 6px; color: var(--fp-gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.fp-page .fp-info h2 { margin: 0 0 6px !important; color: var(--fp-navy); font-size: 28px !important; font-weight: 700 !important; line-height: 1.25; }
.fp-page .fp-role { margin: 0 0 16px !important; color: var(--fp-muted); font-size: 16px !important; line-height: 1.6; }
.fp-page .fp-role::first-line { color: var(--fp-blue); font-weight: 600; }
.fp-page .fp-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.fp-page .fp-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--fp-line);
           border-radius: 999px; background: var(--fp-soft); color: var(--fp-ink); font-size: 14px; overflow-wrap: anywhere; }
.fp-page .fp-chip i { color: var(--fp-blue); }
.fp-page .fp-chip a { color: var(--fp-blue) !important; text-decoration: none !important; }
.fp-page .fp-chip a:hover { text-decoration: underline !important; }

/* Qualifications, Area of Research, ...: cards */
.fp-page .fp-card { margin-bottom: 18px !important; padding: 0 !important; border: 1px solid var(--fp-line) !important; border-radius: 14px !important;
           background: #fff; box-shadow: 0 6px 18px rgba(13, 40, 71, .06); overflow: hidden; }
.fp-page .fp-card-title { display: flex; align-items: center; gap: 10px; padding: 14px 20px !important; border-radius: 0 !important;
           border-bottom: 1px solid var(--fp-line); background: var(--fp-soft) !important; color: var(--fp-navy) !important;
           font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; }
.fp-page .fp-card-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--fp-gold); }
.fp-page .fp-card ul { margin: 0 !important; padding: 0 20px !important; list-style: none; }
.fp-page .fp-card ul:first-of-type { padding-top: 10px !important; }
.fp-page .fp-card ul:last-of-type { padding-bottom: 12px !important; }
.fp-page .fp-card li { position: relative; padding: 7px 0 7px 18px; font-size: 15px; line-height: 1.6; }
.fp-page .fp-card li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--fp-blue); }

/* Downloads */
.fp-page .fp-downloads { margin-top: 28px; padding: 22px 0 6px; border: 1px solid var(--fp-line); border-radius: 14px; background: #fff;
           box-shadow: 0 6px 18px rgba(13, 40, 71, .06); }
.fp-page .fp-section-title { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 20px 14px; border-bottom: 1px solid var(--fp-line);
           color: var(--fp-navy); font-size: 17px; font-weight: 700; }
.fp-page .fp-section-title i { color: var(--fp-gold); }
.fp-page .fp-downloads > .p-4 { padding: 10px 20px 14px; }
.fp-page .fp-downloads > .p-4 > .space-y-4 > * + * { margin-top: 10px !important; }
.fp-page .fp-downloads > .p-4 > .space-y-4:not(:has(*))::before { content: "No documents yet."; color: var(--fp-muted); font-size: 14px; }
.fp-page .fp-doc { gap: 12px; padding: 12px 16px !important; border-color: var(--fp-line) !important; border-radius: 12px !important;
           box-shadow: none !important; transition: background-color .2s ease, border-color .2s ease; }
.fp-page .fp-doc:hover { background: var(--fp-soft) !important; border-color: #c9d4e4 !important; }
.fp-page .fp-doc > * { margin: 0 !important; }
.fp-page .fp-doc > span:first-child { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px !important; border: 0 !important;
           border-radius: 999px !important; background: #e9eff8 !important; color: var(--fp-muted) !important; font-size: 12.5px; white-space: nowrap; }
.fp-page .fp-doc > span:first-child::before { content: "\f073"; font-family: "Font Awesome 5 Free"; font-weight: 400; color: var(--fp-blue); }
.fp-page .fp-doc > a:last-child { padding: 0 !important; color: var(--fp-navy) !important; font-weight: 500; background: none !important; }
.fp-page .fp-doc > a:last-child::before { content: "\f15b"; margin-right: 8px; font-family: "Font Awesome 5 Free"; font-weight: 400; color: var(--fp-blue); }
.fp-page .fp-doc > a:last-child:hover { color: var(--fp-blue) !important; text-decoration: underline; }

/* the page blocks under the profile ("Add to this page") keep their own look */
.fp-page #page-blocks { padding-left: 0; padding-right: 0; }

@media (max-width: 767.98px) {
    .fp-page { padding-top: 16px; }
    .fp-page .fp-hero { flex-direction: column; align-items: center; gap: 18px; padding: 24px 18px; text-align: center; }
    .fp-page .fp-photo img { width: 150px !important; height: 175px !important; }
    .fp-page .fp-info h2 { font-size: 24px !important; }
    .fp-page .fp-contacts { justify-content: center; }
    .fp-page .fp-tabs { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .fp-page .fp-actions a, .fp-page .fp-tabs a, .fp-page .fp-doc { transition: none; }
}
