/* ============================================================
   CSS Reset & Box-Sizing
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   Base
   ============================================================ */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

a {
    color: #1a5276;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
}

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    white-space: nowrap;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.navbar-brand:hover {
    text-decoration: none;
    color: #1a5276;
}

.navbar-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.125rem;
}

.navbar-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: color 0.15s;
}

.navbar-links a:hover {
    color: #1a5276;
    text-decoration: none;
}

.navbar-links a.active {
    color: #1a5276;
    border-bottom: 2px solid #1a5276;
    border-radius: 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.admin-badge {
    background: #1a5276;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.navbar-right .logout-link {
    font-size: 0.85rem;
    color: #666;
}

.navbar-right .logout-link:hover {
    color: #c0392b;
    text-decoration: none;
}

/* ============================================================
   Container & Layout
   ============================================================ */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.home-grid {
    display: block;
}

.home-main-column {
    min-width: 0;
    width: 100%;
}

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.title-count {
    color: #666;
    font-size: 0.75em;
    font-weight: 500;
}

.pub-number {
    display: inline-block;
    min-width: 1.6rem;
    color: #666;
    font-weight: 600;
}

.student-number {
    display: inline-block;
    min-width: 1.6rem;
    color: #666;
    font-weight: 600;
}

.page-header .subtitle {
    color: #666;
    font-size: 1rem;
}

.filter-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin: -0.5rem 0 1.5rem;
}

.filter-input,
.filter-select {
    min-width: 0;
    flex: 1 1 0;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #ffffff;
    font: inherit;
    color: #1a1a1a;
}

.filter-input {
    flex-grow: 2;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #1a5276;
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.12);
}

.education-experience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
}

.education-experience-grid.has-one-visible-section .section-group {
    grid-column: 1 / -1;
}

.supervised-work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.supervised-work-column {
    grid-column: 1;
}

.supervised-work-column-right {
    grid-column: 1;
}

.supervised-work-grid.has-one-visible-column .supervised-work-column {
    grid-column: 1 / -1;
}

/* ============================================================
   Admin Toolbar
   ============================================================ */
.admin-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f4f8fb;
    border: 1px solid #c8daea;
    border-radius: 6px;
}

.admin-toolbar span {
    font-size: 0.8rem;
    color: #1a5276;
    font-weight: 500;
    margin-right: 0.25rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: #1a5276;
    color: #ffffff;
    border-color: #1a5276;
}

.btn-primary:hover {
    background: #154360;
    border-color: #154360;
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: #1a5276;
    border-color: #1a5276;
}

.btn-secondary:hover {
    background: #eaf0f6;
    color: #1a5276;
}

.btn-danger {
    background: #c0392b;
    color: #ffffff;
    border-color: #c0392b;
}

.btn-danger:hover {
    background: #a93226;
    border-color: #a93226;
    color: #ffffff;
}

.btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

.btn-icon {
    background: none;
    border: 1px solid transparent;
    color: #999;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: color 0.15s, background 0.15s;
    display: inline-flex;
    align-items: center;
}

.btn-icon:hover {
    color: #1a5276;
    background: #eaf0f6;
    border-color: #c8daea;
}

.btn-icon.btn-icon-danger:hover {
    color: #c0392b;
    background: #fdf2f0;
    border-color: #f1aaa3;
}

/* ============================================================
   Item Cards
   ============================================================ */
.item-card {
    padding: 1rem 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    position: relative;
    background: #ffffff;
    transition: border-color 0.15s;
}

.item-card:hover {
    border-color: #c0c0c0;
}

.item-card .item-actions {
    display: none;
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    gap: 0.25rem;
    align-items: center;
}

.admin-visible .item-card .item-actions {
    display: flex;
}

/* Section groups */
.section-group {
    margin-bottom: 2.5rem;
}

.section-group h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e0e0e0;
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-year {
    background: #eaf0f6;
    color: #1a5276;
    border: 1px solid #c8daea;
}

.badge-type {
    background: #f4f4f4;
    color: #555;
    border: 1px solid #ddd;
}

.badge-degree {
    background: #f0f4f8;
    color: #2c5f8a;
    border: 1px solid #c8daea;
}

.badge-status-current {
    background: #e9f7ef;
    color: #1e8449;
    border: 1px solid #a9dfbf;
}

.badge-quality {
    background: #e9f7ef;
    color: #145a32;
    border: 1px solid #a9dfbf;
}

.badge-status-alumni {
    background: #f4f6f7;
    color: #616a6b;
    border: 1px solid #d5d8dc;
}
/* Shared italic subtitle line (org / institution) used under award/funding/experience titles */
.item-subtitle {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0.4rem;
}

/* Give the new title elements room for the action buttons, matching pub-title */
.award-title {
    padding-right: 5rem;
}
/* ============================================================
   Forms
   ============================================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.form-group .hint {
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a5276;
    box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* ============================================================
   Modal
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    transition: color 0.15s;
}

.close-btn:hover {
    color: #1a1a1a;
}

.modal-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* ============================================================
   Profile Hero
   ============================================================ */
.profile-hero {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    flex-shrink: 0;
}

.profile-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 3rem;
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #1a1a1a;
}

.profile-info {
    text-align: left;
}

.profile-info .profile-email {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: #1a5276;
    text-decoration: none;
    margin-bottom: 0.3rem;
}

.profile-info .profile-email:hover {
    text-decoration: underline;
}

.profile-info .profile-title {
    font-size: 1.05rem;
    color: #1a5276;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.profile-info .profile-dept {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.15rem;
}

.profile-info .profile-inst {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.profile-bio {
    margin-top: 1.25rem;
    font-size: 0.97rem;
    color: #333;
    line-height: 1.7;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    white-space: pre-line;
}

.research-areas {
    margin-top: 1.75rem;
    max-width: 100%;
    text-align: left;
}

.research-area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-start;
}

.research-area-tag {
    padding: 0.3rem 0.6rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #ffffff;
    color: #555;
    font-size: 0.85rem;
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.profile-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: #1a5276;
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border: 1px solid #c8daea;
    border-radius: 4px;
    background: #f4f8fb;
    transition: background 0.15s;
}

.profile-links a:hover {
    background: #eaf0f6;
    text-decoration: none;
}

.profile-links .profile-icon-link {
    padding: 0.45rem;
    width: 2.15rem;
    height: 2.15rem;
    justify-content: center;
}

.profile-links .profile-icon-link .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.profile-links .brand-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    color: currentColor;
    line-height: 1;
}

.profile-links .brand-glyph-scholar,
.profile-links .brand-glyph-researchgate,
.profile-links .brand-glyph-web-of-science {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.profile-links .brand-glyph-scholar {
    font-weight: 400;
}

.profile-links .brand-glyph-researchgate {
    font-weight: 600;
}

.profile-links .brand-glyph-researchgate sup {
    margin-left: 0.02rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.55em;
    line-height: 1;
    vertical-align: super;
}

.profile-links .brand-glyph-web-of-science {
    font-weight: 400;
}

.profile-links .brand-glyph-orcid {
    width: 1.35rem;
    height: 1.35rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
}

.profile-links .brand-glyph-scopus {
    width: 1.75rem;
    height: 1.75rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.44rem;
    font-weight: 500;
}


.profile-link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
}

.profile-link-item .drag-handle {
    cursor: grab;
    color: #999;
    flex-shrink: 0;
}

.profile-link {
    font-size: 0.875rem;
    color: #1a5276;
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border: 1px solid #c8daea;
    border-radius: 4px;
    background: #f4f8fb;
    transition: background 0.15s;
}

.profile-link:hover {
    background: #eaf0f6;
    text-decoration: none;
}

.item-actions-inline {
    display: inline-flex;
    gap: 0.25rem;
    margin-left: auto;
}

/* ============================================================
   Publications
   ============================================================ */
.pub-card {
    padding: 1rem 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    position: relative;
    background: #ffffff;
}

.pub-card:hover {
    border-color: #c0c0c0;
}

.pub-card .item-actions {
    display: none;
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    gap: 0.25rem;
    align-items: center;
}

.admin-visible .pub-card .item-actions {
    display: flex;
}

.pub-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.pub-title {
    font-weight: 600;
    font-size: 0.97rem;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
    padding-right: 5rem;
}

.pub-authors {
    font-size: 0.875rem;
    color: #444;
    margin-bottom: 0.15rem;
}

.pub-venue {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0.4rem;
}

.pub-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pub-links a {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a5276;
    text-decoration: none;
    padding: 1px 7px;
    border: 1px solid #c8daea;
    border-radius: 3px;
    background: #f4f8fb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.12s;
}

.pub-links a:hover {
    background: #eaf0f6;
    text-decoration: none;
}

/* ============================================================
   Students
   ============================================================ */
.student-card-name {
    font-weight: 600;
    font-size: 0.97rem;
    padding-right: 5rem;
}

.student-card-thesis {
    font-size: 0.875rem;
    color: #555;
    margin-top: 0.2rem;
    font-style: italic;
}

.student-card-years {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.15rem;
}

.student-card-defense {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
}



/* ============================================================
   Project Funding
   ============================================================ */
.funding-title {
    font-weight: 600;
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
    padding-right: 5rem;
}

.funding-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.84rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.funding-role {
    font-size: 0.84rem;
    color: #1a5276;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.funding-description {
    font-size: 0.9rem;
    color: #444;
}

/* ============================================================
   Education & Experience
   ============================================================ */
.experience-title {
    font-weight: 600;
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
    padding-right: 5rem;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.84rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.experience-description {
    font-size: 0.9rem;
    color: #444;
}

/* ============================================================
   Awards
   ============================================================ */
.award-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
    padding-right: 5rem;
}

.award-title {
    font-weight: 600;
    font-size: 0.97rem;
}

.award-org-year {
    font-size: 0.85rem;
    color: #666;
}

.award-desc {
    font-size: 0.875rem;
    color: #555;
    margin-top: 0.25rem;
}

/* ============================================================
   Courses
   ============================================================ */
.course-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-right: 5rem;
    margin-bottom: 0.25rem;
}

.course-code {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a5276;
}

.course-name {
    font-weight: 600;
    font-size: 0.97rem;
}

.course-meta {
    font-size: 0.83rem;
    color: #888;
    margin-bottom: 0.3rem;
}

.course-desc {
    font-size: 0.875rem;
    color: #555;
}

/* ============================================================
   Research
   ============================================================ */
.research-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
    padding-right: 5rem;
}

.research-desc {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.65;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-section {
    max-width: 560px;
}

.contact-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #555;
    width: 110px;
    flex-shrink: 0;
}

.contact-value {
    font-size: 0.9rem;
    color: #1a1a1a;
}

/* ============================================================
   Reorder / Drag handles
   ============================================================ */
.drag-handle {
    cursor: grab;
    color: #bbb;
    font-size: 1rem;
    padding: 0.2rem 0.3rem;
    margin-right: 0.5rem;
    user-select: none;
    display: inline-block;
}

.drag-handle:active {
    cursor: grabbing;
}

.reorder-controls {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.reorder-controls button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 0.65rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1.3;
    color: #888;
    transition: color 0.1s, background 0.1s;
}

.reorder-controls button:hover {
    color: #1a5276;
    background: #eaf0f6;
    border-color: #c8daea;
}

/* ============================================================
   Admin Login
   ============================================================ */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 2rem;
}

.login-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.login-card h1 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.login-card .login-subtitle {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.error-message {
    background: #fdf2f0;
    border: 1px solid #f1aaa3;
    color: #922b21;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ============================================================
   Admin Dashboard
   ============================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dashboard-card:hover {
    border-color: #1a5276;
    box-shadow: 0 2px 10px rgba(26, 82, 118, 0.1);
    text-decoration: none;
}

.dashboard-card .dash-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-card .dash-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.dashboard-card .dash-sub {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.15rem;
}

/* ============================================================
   Utility
   ============================================================ */
.text-muted {
    color: #888;
}

.text-secondary {
    color: #666;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #aaa;
    font-size: 0.95rem;
    border: 1px dashed #ddd;
    border-radius: 6px;
}

/* Current file info in edit forms */
.current-file-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

/* ============================================================
   Responsive — 768px breakpoint
   ============================================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .navbar-links {
        order: 3;
        width: 100%;
        gap: 0;
    }

    .navbar-links a {
        padding: 0.3rem 0.5rem;
        font-size: 0.82rem;
    }

    .navbar-right {
        margin-left: auto;
    }

    .container {
        padding: 1.25rem 1rem;
    }

    .filter-bar {
        flex-wrap: wrap;
    }

    .filter-input,
    .filter-select {
        flex-basis: 100%;
    }

    .home-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .education-experience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .supervised-work-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .supervised-work-column,
    .supervised-work-column-right,
    .supervised-work-grid.has-one-visible-column .supervised-work-column {
        grid-column: 1;
        grid-row: auto;
    }

    .profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }

    .profile-links {
        justify-content: center;
    }

    .profile-bio {
        text-align: justify;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal {
        padding: 1.25rem 1.25rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ===== Admin content manager dashboard ===== */
.admin-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 1.5rem;
}

.dashboard-grid-compact .dashboard-card {
    min-height: 120px;
}

.admin-help-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    margin: 1rem 0 2rem;
    border: 1px solid #d7e5ef;
    border-radius: 8px;
    background: #f6fafc;
    color: #345;
    font-size: 0.92rem;
}

.admin-manager-section {
    scroll-margin-top: 96px;
    margin: 2rem 0;
    padding: 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.manager-section-heading {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eeeeee;
}

.manager-section-heading h2 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    color: #1a5276;
}

.manager-section-heading p {
    margin: 0;
    color: #666;
    font-size: 0.94rem;
}

.admin-manager-section .admin-toolbar {
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e7eef3;
    border-radius: 6px;
    background: #fafcfe;
}

.admin-manager-section .profile-hero {
    margin-top: 0.5rem;
}

.admin-visible .item-card,
.admin-visible .pub-card {
    padding-right: 5.25rem;
}

.admin-visible .item-actions {
    display: flex;
}

@media (max-width: 768px) {
    .admin-dashboard-header {
        flex-direction: column;
    }

    .admin-dashboard-header .btn {
        width: 100%;
        text-align: center;
    }

    .admin-manager-section {
        padding: 1rem;
    }
}

/* ===== Professional SVG icons ===== */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.14em;
    flex: 0 0 auto;
}

.icon-inline {
    margin-right: 0.35rem;
}

.dash-icon .icon {
    width: 1.7rem;
    height: 1.7rem;
    stroke-width: 1.8;
}

.toolbar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.toolbar-label .icon {
    color: #1a5276;
}

.btn-icon .icon {
    width: 1rem;
    height: 1rem;
}

.drag-handle .icon {
    width: 1.15rem;
    height: 1.15rem;
}

.close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.close-btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.profile-placeholder-icon {
    width: 5rem;
    height: 5rem;
    color: #9aa7b2;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
