/* =========================
   Breadcrumb
========================= */

.profile-breadcrumb{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0 0;
  font-size: 14px;
  color: #9ca3af;
}

.profile-breadcrumb a{
  color: #6b7280;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}

.profile-breadcrumb a:hover{
  color: #c8102e;
}

.profile-breadcrumb svg{
  color: #d1d5db;
}

.profile-breadcrumb span{
  color: #374151;
  font-weight: 700;
}

/* =========================
   Profile Layout
========================= */

.profile-layout{
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr;
  gap: 32px 48px;
  align-items: start;
}

.profile-sidebar{
  grid-column: 1;
  grid-row: 1;
}

.profile-content{
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
}

.profile-hero-card{
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

/* =========================
   Profile Hero Card
========================= */

.profile-hero-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow:
    0 1px 2px rgba(15,23,42,0.05),
    0 4px 12px rgba(15,23,42,0.03);
  background: #ffffff;
  padding: 22px 20px;
  max-width: 280px;
  margin-bottom: 18px;
}

.profile-hero-inner{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-hero-logo{
  display: block;
  width: 240px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 22px;
}

.hero-logo-mobile{
  display: block;
}

.hero-logo-desktop{
  display: none;
}

/* Override global img styles for hero logo */
.profile-hero-card img{
  max-width: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.profile-hero-card p{
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 20px 0;
}

.profile-hero-actions{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.profile-hero-actions .btn-primary,
.profile-hero-actions .btn-secondary{
  text-align: center;
  font-size: 12px;
  padding: 8px 12px;
}

/* =========================
   Profile Sidebar (Photo + Links)
========================= */

.profile-photo-wrap{
  width: 240px;
  height: 240px;
  min-width: 240px;
  min-height: 240px;
  flex-shrink: 0;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  box-shadow:
    0 4px 16px rgba(15,23,42,0.15),
    0 0 24px rgba(59,130,246,0.12),
    0 0 48px rgba(200,16,46,0.06);
}

.profile-photo,
.profile-sidebar img,
.profile-photo-wrap img,
img.profile-photo{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* =========================
   Profile Links
========================= */

.profile-links{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

.profile-link-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid rgba(15,23,42,0.06);
  color: #374151;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.profile-link-item svg{
  flex-shrink: 0;
  color: #6b7280;
  transition: color 0.15s ease;
}

.profile-link-item:hover{
  background: #ffffff;
  border-color: rgba(200,16,46,0.25);
  transform: translateY(-1px);
}

.profile-link-item:hover svg{
  color: #c8102e;
}

/* =========================
   Profile Content (Right side)
========================= */

.profile-header{
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.profile-name{
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.profile-role{
  font-size: 17px;
  font-weight: 500;
  color: #c8102e;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.profile-affiliation{
  font-size: 15px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.profile-email{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  margin-top: 10px;
  transition: color 0.15s ease;
}

.profile-email:hover{
  color: #c8102e;
}

.profile-email svg{
  flex-shrink: 0;
  color: inherit;
}

/* =========================
   Profile Bio
========================= */

.profile-bio h2{
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 28px 0 10px 0;
  letter-spacing: -0.01em;
}

.profile-bio h2:first-child{
  margin-top: 0;
}

.profile-bio p{
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 14px 0;
}

.profile-bio ul.profile-publications{
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
}

.profile-bio ul.profile-publications li{
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  padding: 4px 0;
}

/* =========================
   Responsive
========================= */

/* Tablet */
@media (max-width: 1000px){
}

/* Small tablet / large phone: fully stacked */
@media (max-width: 800px){
  .profile-layout{
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-sidebar{
    order: 1;
    position: static;
    max-width: 300px;
    grid-column: auto;
    grid-row: auto;
  }

  .profile-links{
    max-width: 200px;
  }

  .profile-photo-wrap{
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
  }

  .profile-content{
    order: 2;
    grid-column: auto;
    grid-row: auto;
  }

  .profile-hero-card{
    order: 3;
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    max-width: 380px;
    position: static;
  }

  .profile-hero-logo,
  .profile-hero-card img.profile-hero-logo{
    width: 280px !important;
    max-width: 280px !important;
    height: auto !important;
  }

  .profile-hero-actions{
    flex-direction: row;
    flex-wrap: wrap;
  }

  .profile-name{
    font-size: 26px;
  }
}

/* Mobile: smaller photo and name */
@media (max-width: 500px){
  .profile-photo-wrap{
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;
  }

  .profile-name{
    font-size: 22px;
  }
}