/* =========================================
   Site-specific styles — loads after Bootstrap 5 CDN
   ========================================= */

body {
  padding-top: 3.375rem;
  color: #495057;
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}

h1, .h1, h2, .h2, h3, .h3,
h4, .h4, h5, .h5, h6, .h6 {
  text-transform: uppercase;
}

h1, .h1 { line-height: 1; }

p.lead {
  font-size: 1.15rem;
  font-weight: 400;
}

/* --- Sidebar --- */
#sideNav {
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: #2c3e50 !important;
}
#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 800;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}
#sideNav .navbar-toggler:focus {
  outline-color: #d48a6e;
}

@media (min-width: 992px) {
  #sideNav {
    padding: 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
    overflow-y: auto;
  }
  #sideNav .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
  }
  #sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: 0.5rem solid rgba(255, 255, 255, 0.2);
  }
  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }
  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item { display: block; }
  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link { display: block; }
}

/* --- Sidebar info block --- */
.sidebar-info {
  font-size: 0.82rem;
  line-height: 1.65;
  padding: 0 0.75rem 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}
.sidebar-info .sidebar-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.6rem;
  margin-bottom: 0.1rem;
}
.sidebar-info a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.sidebar-info a:hover { color: #fff; }
.sidebar-info .sidebar-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02rem;
}
.sidebar-info .sidebar-role {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Social icons --- */
.social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
  width: 2.4rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 100%;
  font-size: 1.15rem;
  margin-right: 0.45rem;
  margin-top: 0.6rem;
  margin-bottom: 0.25rem;
  transition: background-color 0.15s ease;
  text-decoration: none;
}
.social-icons .social-icon:last-child { margin-right: 0; }
.social-icons .social-icon:hover { background-color: rgba(255, 255, 255, 0.3); }

/* --- Main content sections --- */
section.resume-section {
  display: flex;
  align-items: flex-start;
  padding: 2rem 1rem;
  max-width: 75rem;
  scroll-margin-top: 4rem;
}
section.resume-section .resume-section-content { width: 100%; }

@media (min-width: 992px) {
  section.resume-section { scroll-margin-top: 0; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Publications section header --- */
.pub-header-title { display: inline; }
.pub-header-link { font-size: 1.1rem; }
.venue-suffix {
  font-weight: normal;
  color: #6c757d;
}

@media (min-width: 768px) {
  section.resume-section { min-height: 5vh; }
}
@media (min-width: 992px) {
  section.resume-section { padding: 2.5rem 3rem; }
}

/* --- Section divider --- */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #dee2e6 20%, #dee2e6 80%, transparent);
  margin: 0;
}

/* --- Publication cards --- */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pub-year-group {
  margin-bottom: 1.75rem;
}
.pub-year-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #adb5bd;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.25rem;
  margin-bottom: 0.6rem;
}
.pub-card {
  border-left: 3px solid transparent;
  padding: 0.55rem 0.5rem 0.55rem 0.85rem;
  margin-bottom: 0.3rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  border-radius: 0 4px 4px 0;
}
.pub-card:hover {
  border-left-color: #4a6fa5;
  background: #f8f9fa;
}
.pub-title {
  font-size: 0.98rem;
  color: #212529;
  font-weight: 400;
  margin-bottom: 0.2rem;
  line-height: 1.45;
}
.pub-meta {
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
}
.pub-meta .venue {
  font-weight: 700;
  color: #343a40;
}
.pub-meta a {
  font-size: 0.82rem;
  margin-left: 0.5rem;
  color: #4a6fa5;
  text-decoration: none;
}
.pub-meta a:hover { text-decoration: underline; }
.pub-badges { margin-top: 0.2rem; }

/* --- Research topic badges --- */
.badge {
  display: inline-block;
  padding: 3px 9px;
  margin-right: 3px;
  margin-bottom: 3px;
  color: #fff;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 500;
}
.ml     { background-color: #C8A415; }
.acc    { background-color: #D48A2C; }
.nic    { background-color: #D4534A; }
.cloud  { background-color: #2E8B7A; }
.tax    { background-color: #287066; }
.ioss   { background-color: #3A7CB8; }
.device { background-color: #7B6FA6; }
.model  { background-color: #666; }
.memory { background-color: #4A8C32; }
.os     { background-color: #14517C; }

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 1rem 0 1.5rem;
  color: #adb5bd;
  font-size: 0.82rem;
}
.site-footer a {
  color: #adb5bd;
  text-decoration: none;
}
.site-footer a:hover { color: #6c757d; }

/* --- Typography --- */
.font_palatino {
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}
