/* Profile page enhancements aligned with the landing page visuals */
body.profile-page {
  font-family: 'Inter', 'Roboto', sans-serif;
  color: #1f2a36;
  background: linear-gradient(180deg, #f6f9fb 0%, #ffffff 60%, #f1f5f9 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.65;
}

body.profile-page a {
  color: #005792;
  text-decoration: none;
}

body.profile-page a:hover,
body.profile-page a:focus {
  color: #0b8acb;
  text-decoration: none;
}

.profile-navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 87, 146, 0.12);
  box-shadow: 0 18px 32px -28px rgba(15, 23, 42, 0.35);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.profile-navbar .navbar-brand {
  font-family: 'Playfair Display', 'Inter', serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: #0f172a;
}

.profile-navbar .navbar-brand:hover {
  color: #0f172a;
}

.profile-navbar .nav-link {
  font-weight: 500;
  color: #1f2a36;
  padding: 0.35rem 0;
}

.profile-navbar .nav-link:hover,
.profile-navbar .nav-link:focus,
.profile-navbar .nav-link.active {
  color: #0b8acb;
}

.profile-navbar .navbar-toggler {
  border: none;
}

.profile-navbar .navbar-toggler:focus {
  box-shadow: none;
}

body.profile-page .profile-main {
  padding: 7.5rem clamp(1.5rem, 4vw, 4rem) 4rem;
}

body.profile-page #banner,
body.profile-page #mission,
body.profile-page #publications,
body.profile-page #activities,
body.profile-page #talks,
body.profile-page #news,
body.profile-page #awards,
body.profile-page #teaching,
body.profile-page #projects,
body.profile-page #sitefooter {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

body.profile-page #mission,
body.profile-page #publications,
body.profile-page #activities,
body.profile-page #talks {
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2.25rem, 6vw, 3rem);
  box-shadow: 0 28px 64px -48px rgba(15, 23, 42, 0.35);
  max-width: 1440px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.profile-page #publications {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 244, 255, 0.78) 55%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(0, 87, 146, 0.12);
  box-shadow: 0 24px 58px -38px rgba(0, 42, 71, 0.45);
}

body.profile-page #mission {
  position: relative;
  overflow: hidden;
}

body.profile-page #mission > *:not(.row) {
  margin-top: 1.5rem;
}

body.profile-page #mission::before,
body.profile-page #mission::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
}

body.profile-page #mission::before {
  width: 260px;
  height: 260px;
  top: -110px;
  right: -70px;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.18) 0%, rgba(30, 144, 255, 0) 70%);
}

body.profile-page #mission::after {
  width: 220px;
  height: 220px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(248, 175, 60, 0.24) 0%, rgba(248, 175, 60, 0) 70%);
}

body.profile-page #mission > * {
  position: relative;
  z-index: 1;
}

body.profile-page #mission > *:not(.row) {
  margin-top: 1.5rem;
}

body.profile-page #mission [style*="float"] {
  float: none !important;
  text-align: right;
  margin-top: 1rem;
}

body.profile-page #publications {
  overflow-x: auto;
}

body.profile-page #mission .row {
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}

body.profile-page #mission img.rounded-circle,
body.profile-page #mission img.imgme {
  border-radius: 18px !important;
  border: 4px solid rgba(0, 87, 146, 0.18);
  height: 140px !important;
  width: 140px !important;
  object-fit: cover;
  box-shadow: 0 18px 30px -22px rgba(15, 23, 42, 0.4);
  margin-bottom: 0.75rem;
}

body.profile-page #mission table {
  margin-top: 1.5rem;
}

.profile-publications-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.profile-publications-title h3 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
}

.profile-publications-title p {
  margin: 0;
  color: #516373;
  max-width: 640px;
}

.profile-publications-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.profile-publications-chip {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem 1rem;
  min-width: 120px;
  border-radius: 1rem;
  background: rgba(0, 87, 146, 0.08);
  border: 1px solid rgba(0, 87, 146, 0.14);
  box-shadow: 0 12px 26px -24px rgba(0, 42, 71, 0.5);
}

.profile-publications-chip .chip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(9, 43, 70, 0.6);
}

.profile-publications-chip .chip-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.profile-publications-table {
  overflow-x: auto;
}

.profile-publications-enhanced {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-publications-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 0.5rem;
}

.profile-publication-card {
  min-height: 100%;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(0, 87, 146, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px -28px rgba(0, 42, 71, 0.4);
}

.profile-publication-card .publication-card-figure {
  aspect-ratio: 4 / 3;
}

.profile-publication-card .publication-card-title {
  font-size: 0.95rem;
  line-height: 1.3;
}

.profile-publication-card .publication-card-authors,
.profile-publication-card .publication-card-venue {
  font-size: 0.78rem;
}

.profile-publication-card .publication-card-meta {
  font-size: 0.6rem;
  gap: 0.2rem;
}

.profile-publication-card .publication-card-topic {
  font-size: 0.65rem;
}

.profile-publication-card .publication-card-cta {
  font-size: 0.68rem;
}

.profile-publications-metrics {
  display: none !important;
}

.profile-publications-table--enhanced .dataTables_wrapper,
.profile-publications-table--enhanced table {
  display: none !important;
}

.profile-publications-empty {
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.04);
}

.profile-publications-toolbar {
  margin-top: 0.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 87, 146, 0.12);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px -36px rgba(0, 42, 71, 0.45);
}

.profile-publications-summary {
  margin: 0;
  padding: 0 0.25rem;
  color: #516373;
}


body.profile-page #htname {
  font-size: 2rem;
  font-weight: 600;
  color: #0f172a;
}

body.profile-page #htem,
body.profile-page #htdesc,
body.profile-page #htem2 {
  font-size: 1rem;
  color: #475569;
}

body.profile-page #mission b,
body.profile-page h3,
body.profile-page h4 {
  color: #0f172a;
  font-weight: 600;
}

body.profile-page h3 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}

body.profile-page h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #0b8acb 0%, rgba(11, 138, 203, 0) 100%);
  border-radius: 999px;
}

body.profile-page #mission > b,
body.profile-page #mission > p {
  margin-top: 1rem;
}

body.profile-page hr.soft {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  margin: 3rem auto;
  width: 100%;
}

body.profile-page table {
  font-size: 0.95rem;
  border-radius: 0.85rem;
  overflow: hidden;
}

body.profile-page #publications h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

body.profile-page #publications > div,
body.profile-page #publications > p {
  color: #475569;
}

body.profile-page #publications table {
  margin-top: 1.25rem;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 18px 36px -32px rgba(0, 42, 71, 0.35);
}

body.profile-page table td,
body.profile-page table th {
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #1f2937;
}

body.profile-page table thead th {
  background: #f3f4f8;
  color: #0f172a;
  font-weight: 600;
}

body.profile-page table tbody tr:nth-child(even) {
  background-color: transparent;
}

body.profile-page #publications table tbody tr:nth-child(even) {
  background-color: rgba(0, 87, 146, 0.035);
}

body.profile-page table.dataTable tbody tr:hover {
  background-color: rgba(15, 23, 42, 0.05);
}

body.profile-page #publications .dataTables_wrapper {
  margin-top: 1.5rem;
}

body.profile-page #publications .dataTables_wrapper .dataTables_filter,
body.profile-page #publications .dataTables_wrapper .dataTables_length {
  font-weight: 500;
  color: #334155;
}

body.profile-page #publications .dataTables_wrapper .dataTables_filter input,
body.profile-page #publications .dataTables_wrapper .dataTables_length select {
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 87, 146, 0.2);
  padding: 0.35rem 0.6rem;
}

body.profile-page .dataTables_wrapper .dataTables_length select,
body.profile-page .dataTables_wrapper .dataTables_filter input {
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  color: #1f2937;
}

body.profile-page .dataTables_wrapper .dataTables_length label,
body.profile-page .dataTables_wrapper .dataTables_filter label {
  color: #334155;
  font-weight: 500;
}

body.profile-page .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 999px !important;
  border: none !important;
  background: transparent !important;
  color: #1f2937 !important;
  padding: 0.35rem 0.75rem !important;
}

body.profile-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.profile-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.15);
}

body.profile-page footer {
  margin-top: 4rem;
  padding-bottom: 4rem;
}

body.profile-page #sitefooter {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem 2.5rem;
  box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.35);
  color: #475569;
}

body.profile-page #sitefooter a {
  font-weight: 600;
}

/* Utility fallbacks for legacy spacing classes */
body.profile-page .mr-auto {
  margin-right: auto !important;
}

body.profile-page .ml-auto {
  margin-left: auto !important;
}

body.profile-page .mt-3 {
  margin-top: 1rem !important;
}

body.profile-page .mb-4 {
  margin-bottom: 1.5rem !important;
}

@media (max-width: 767.98px) {
  body.profile-page #mission [style*="float"] {
    text-align: center;
    margin-top: 1rem;
  }

  body.profile-page #mission img.rounded-circle,
  body.profile-page #mission img.imgme {
    width: 120px !important;
    height: 120px !important;
  }
  body.profile-page .profile-main {
    padding: 6.75rem 1.5rem 3rem;
  }

  body.profile-page #mission,
  body.profile-page #publications,
  body.profile-page #activities,
  body.profile-page #talks {
    padding: 1.85rem 1.5rem;
    border-radius: 18px;
  }

  body.profile-page #mission img.rounded-circle,
  body.profile-page #mission img.imgme {
    margin: 0 auto 1.5rem;
    display: block;
    width: 120px !important;
    height: 120px !important;
  }

  body.profile-page #mission .row {
    text-align: center;
    justify-content: center;
    text-align: center;
  }

  body.profile-page #htname {
    font-size: 1.75rem;
  }

  .profile-publications-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .profile-publications-metrics {
    width: 100%;
  }

  .profile-publications-chip {
    flex: 1 1 100%;
  }

}
