:root {
  --primary:           #ff7900;
  --supporting-blue:   #4bb4e6;
  --supporting-yellow: #ffd200;
  --supporting-green:  #50be87;
  --supporting-purple: #a885d8;
  --supporting-pink:   #ffb4e6;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

.text-truncate-4 {
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.img-card-fit {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
} /* filter: grayscale(100%);*/

/* .img-card-fit:hover {
  filter: grayscale(0%);
  transition: filter 0.3s ease;
} */

/* =============================================
   GLOBAL CONTENT
   ============================================= */

#content {
  text-align: justify;
}

.page-content {
  text-align: justify;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */

#main-header {
  transition: all 0.3s ease-in-out;
}

#main-header .navbar {
  min-height: 120px;
  transition: all 0.3s ease-in-out;
  background: linear-gradient(135deg, var(--bs-success) 0%, var(--bs-dark) 100%);
}

#main-header.header-scrolled .navbar {
  min-height: 60px;
}

.navbar-brand {
  position: relative;
}

.header-logo-full {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.header-logo-small-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-logo-small {
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.4s ease, opacity 0.3s ease;
  font-weight: 600;
  letter-spacing: 1px;
}

#main-header.header-scrolled .header-logo-full {
  opacity: 0;
  transform: translateY(-10px);
}

#main-header.header-scrolled .header-logo-small {
  opacity: 1;
  transform: translateY(0);
}

.navbar-brand:hover .header-logo-full,
.navbar-brand:hover .header-logo-small {
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Nav link underline hover */
.nav-link {
  position: relative;
  transition: all 0.2s ease;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-item.active .nav-link:after {
  width: 100%;
}

.tech-accent {
  opacity: 0.8;
  font-weight: normal;
  color: #ffffff;
}

#main-header.header-scrolled .tech-accent {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.0; }
  50% { opacity: 1; }
  100% { opacity: 0.0; }
}

@media (max-width: 991.98px) {
  #main-header .navbar {
    min-height: 88px;
  }

  #main-header.header-scrolled .navbar {
    min-height: 72px;
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar-nav {
    gap: 0.25rem;
  }

  .navbar-nav .nav-link {
    display: inline-block;
    padding: 0.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .page-content {
    text-align: left;
  }
}

/* =============================================
   RESOURCE CARDS (Paper / Patent / Talk / Project)
   Single shared layout — handles all content types
   ============================================= */

.resource-card {
  width: 100%;
  height: 385px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--bs-light);
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
}

.resource-card .row.g-0 {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
}

.resource-card .col-md-4 {
  flex: 0 0 300px;
  height: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.resource-card .col-md-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resource-card .col-md-8 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.resource-card .col-md-8 > .card-body {
  flex-grow: 1;
  overflow: hidden;
  min-width: 0;
  background-color: var(--bs-light);
}

/* Card text justification */
.resource-card .card-body p,
.resource-card .card-body .card-text {
  text-align: justify;
  text-justify: inter-word;
}

/* Card keywords badges */
.resource-card .post-keywords .badge {
  font-size: 0.75rem;
}

/* Card navbar — shared */
.resource-card-navbar {
  background-color: var(--bs-light) !important;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 0.5rem 1rem;
  margin-bottom: 0;
  min-height: 48px;
}

.resource-card-navbar .nav-link {
  color: var(--bs-dark) !important;
  position: relative;
  transition: all 0.2s ease;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 500;
  border-radius: 6px;
  background: transparent;
}

.resource-card-navbar .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--bs-success);
  transition: width 0.3s ease;
}

.resource-card-navbar .nav-link:hover:after,
.resource-card-navbar .nav-item.active .nav-link:after {
  width: 100%;
}

.resource-card-navbar .nav-link:hover {
  color: var(--bs-success) !important;
}

/* Downsized cards for projects */
.resource-card--project {
  height: 270px;
}

/* Resource cards — 768px responsive */
@media (max-width: 767.98px) {
  .resource-card {
    height: auto;
  }

  .resource-card .card-title {
    font-size: 1rem;
    line-height: 1.3;
  }

  .resource-card .card-subtitle,
  .resource-card .card-text,
  .resource-card .card-body .small {
    font-size: 0.825rem !important;
    line-height: 1.45;
  }

  .resource-card .post-keywords {
    display: none;
  }

  .resource-card .row.g-0 {
    flex-wrap: wrap;
    height: auto;
  }

  .resource-card .col-md-8 {
    height: auto;
  }

  .resource-card .col-md-8 > .card-body {
    overflow: visible;
  }

  .resource-card .col-md-4:not(.d-none) {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }

  .resource-card-navbar {
    padding: 0.5rem 0.75rem 0.75rem;
  }

  .resource-card-navbar .navbar-nav {
    flex-wrap: wrap;
    justify-content: flex-start !important;
    gap: 0.25rem !important;
  }

  .resource-card-navbar .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Resource cards — 576px responsive */
@media (max-width: 575.98px) {
  .resource-card-navbar .navbar-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .resource-card-navbar .nav-link {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

/* =============================================
   POST LAYOUT
   ============================================= */

.post {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.post-wrapper {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.post {
  flex: 0 0 100%;
  max-width: 100%;
}


.post-content {
  width: 100%;
}

.post-toc {
  position: sticky;
  top: 100px;
  width: 170px;
  flex-shrink: 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 0.8rem 0 0.8rem 0.75rem;
  border-left: 1px solid var(--bs-border-color);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.post-toc.visible {
  opacity: 1;
  transform: translateY(0);
}

.post-toc.visible {
  opacity: 1;
  transform: translateY(0);
}

.post-toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-secondary);
  margin: 0 0 0.5rem 0;
}

.post-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-toc-list > li {
  margin-bottom: 0.15rem;
}

.post-toc-list > li > a {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 0.2rem 0.5rem;
  color: var(--bs-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.post-toc-list > li > a:hover {
  color: var(--bs-success);
}

.post-toc-list > li > a.active {
  color: var(--bs-success);
  border-left-color: var(--bs-success);
  background: rgba(var(--bs-success-rgb), 0.06);
}

.post-toc-list > li.post-toc-h3 > a {
  padding-left: 1.15rem;
  font-size: 0.73rem;
}

.post-header-card {
  background: var(--bs-light);
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.post-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 1rem;
}

.post-header {
  text-align: center;
}

.post-content,
.post-abstract p {
  text-align: justify;
  text-justify: inter-word;
}

/* Post nav links */
.post-nav .nav-link {
  color: var(--bs-dark) !important;
  position: relative;
  transition: all 0.2s ease;
  padding-left: 1rem;
  padding-right: 1rem;
  font-weight: 500;
  border-radius: 6px;
  background: transparent;
}

.post-nav .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--bs-success);
  transition: width 0.3s ease;
}

.post-nav .nav-link:hover:after,
.post-nav .nav-item.active .nav-link:after {
  width: 100%;
}

.post-nav .nav-link:hover {
  color: var(--bs-success) !important;
}

/* Post figures */
.post-content figure {
  margin: 1.5em 0;
  text-align: center;
  padding: 0.5em;
}

.post-content figure img {
  max-width: 80%;
  max-height: 50vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.post-content figcaption {
  font-size: 0.9em;
  color: #555;
  margin-top: 0.3em;
  font-style: italic;
}

/* Math styling */
.post-content .math {
  padding: 0.5em;
  border-radius: 4px;
  overflow-x: auto;
}

/* Tables */
.post-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  font-size: 0.9em;
}

.post-content caption {
  text-align: center;
  caption-side: top;
  font-style: italic;
  font-size: 0.95em;
  margin-bottom: 0.5em;
  color: #555;
}

.post-content th,
.post-content td {
  border: 1px solid #ccc;
  padding: 0.4em 0.6em;
  text-align: center;
  vertical-align: middle;
}

.post-content thead th {
  background-color: #f0f0f0;
  font-weight: 600;
}

.post-content tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Bibliography */
.post-content .citation {
  font-size: 0.9em;
  color: #555;
  background-color: #f0f0f0;
  padding: 0 0.3em;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.post-content .csl-bib-body {
  margin-top: 2em;
  padding-left: 1.2em;
  font-size: 0.95em;
  line-height: 1.5;
  border-top: 1px solid #ccc;
  padding-top: 1em;
}

.post-content .csl-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}

.post-content .csl-left-margin {
  white-space: nowrap;
  flex-shrink: 0;
}

.post-content .csl-right-inline {
  flex: 1;
}

.post-content .csl-entry:last-child {
  border-bottom: none;
}

.post-content .csl-entry a {
  text-decoration: none;
}

.post-content .csl-entry a:hover {
  text-decoration: underline;
}

/* Copyright & Thanks */
.post-copyright,
.post-thanks {
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
  padding-bottom: 1rem;
  padding-top: 1rem;
  user-select: none;
}

/* Authors */
.author-bullet {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.3em;
}

.author-item a {
  text-decoration: none;
  color: inherit;
}

.author-item a:hover {
  text-decoration: underline;
}

.post-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.post-affiliations .badge.affiliation-badge {
  user-select: none;
}

/* PDF viewer */
.pdf-container {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.pdf-container iframe {
  display: block;
  width: 100%;
  height: 800px;
  border: none;
}

.pdf-fallback {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 2rem;
  background: var(--bs-light);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pdf-container:not(:has(iframe[src])) .pdf-fallback {
  display: block;
}

/* =============================================
   CITATION MODAL (Post)
   ============================================= */

#citationModal .modal-content {
  background: var(--bs-light);
  border-radius: 16px;
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  padding: 0;
}

#citationModal .modal-header {
  border-bottom: 1px solid var(--bs-border-color);
  padding: 1.5rem 2rem 1rem 2rem;
  background: var(--bs-light);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

#citationModal .modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bs-dark);
}

#citationModal .modal-body {
  padding: 2rem 2rem 1.5rem 2rem;
  background: var(--bs-light);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

#citationTabs.nav-tabs {
  border-bottom: 2px solid var(--bs-border-color);
  margin-bottom: 1.5rem;
}

#citationTabs .nav-link {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--bs-secondary);
  background: transparent;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s;
  position: relative;
}

#citationTabs .nav-link.active {
  color: var(--bs-success);
  background: var(--bs-light);
  font-weight: 600;
}

#citationTabs .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--bs-success);
  transform: scaleX(0);
  transition: transform 0.3s;
}

#citationTabs .nav-link.active::after {
  transform: scaleX(1);
}

#citationTabs .nav-link:hover {
  color: var(--bs-success);
}

#citationTabs + .tab-content pre {
  background: var(--bs-light);
  border-radius: 0;
  border: 1px solid var(--bs-border-color);
  padding: 1.2rem;
  font-size: 1rem;
  color: var(--bs-dark);
  margin-bottom: 1rem;
}

.copy-btn {
  background: var(--bs-success);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 0.5rem;
}

.copy-btn:hover {
  background: var(--bs-dark);
  color: #fff;
}

/* =============================================
   RESUME LAYOUT
   ============================================= */

.logo-container {
  min-width: 80px;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.logo-container img {
  object-fit: scale-down;
  max-width: 80px;
  max-height: 80px;
}

/* Accordion */
.accordion-item {
  background: var(--bs-light);
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  padding: 1.5rem;
  background: var(--bs-light);
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: var(--bs-light) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
  border-color: transparent !important;
}

.header-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.header-text {
  flex-grow: 1;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.experience-title,
.education-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--bs-dark);
}

.accordion-button:not(.collapsed) .date-badge {
  color: white;
  background: var(--bs-success);
}

.institution {
  font-size: 1.15rem;
  color: var(--bs-secondary);
  text-align: justify;
  text-justify: inter-word;
}

.location {
  font-size: 1.05rem;
  color: var(--bs-secondary);
  text-align: justify;
  text-justify: inter-word;
}

.date-badge {
  font-size: 0.92rem;
  color: var(--bs-secondary);
  background: var(--bs-light);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  white-space: nowrap;
  margin-left: 0rem;
  margin-right: 2rem;
}

.accordion-body {
  background: var(--bs-light);
  padding: 0 1.5rem 1.5rem 1.5rem;
  text-align: justify;
  text-justify: inter-word;
}

.accordion-body p,
.accordion-body li {
  text-align: justify;
  text-justify: inter-word;
}

/* Resume section headers */
#resumeTabs {
  border-bottom: 2px solid var(--bs-border-color);
}

/* Resume tab navigation */
#resumeTabs .nav-link {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--bs-secondary);
  transition: all 0.3s ease;
  position: relative;
}

#resumeTabs .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--bs-success);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

#resumeTabs .nav-link:hover {
  color: var(--bs-success);
  border: none;
}

#resumeTabs .nav-link.active {
  color: var(--bs-success);
  background: transparent;
  border: none;
}

#resumeTabs .nav-link.active::after {
  transform: scaleX(1);
  background-color: var(--bs-success);
}

/* =============================================
   CONTACT MODAL (Home)
   ============================================= */

#contactModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px var(--bs-dark);
}

#contactModal .modal-header {
  border-bottom: 1px solid #eee;
  padding: 1.25rem 1.5rem;
}

#contactModal .modal-title {
  font-weight: 600;
  color: var(--bs-dark);
}

#contactModal .modal-body {
  padding: 1.5rem;
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control {
  border-radius: 6px;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
}

.form-control:focus {
  border-color: var(--bs-success);
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* =============================================
   HOME PAGE — PROFILE, ABOUT, IMPACT
   ============================================= */

.main-content {
  margin-bottom: 2rem;
}

/* About Card */
.about-section {
  width: 100%;
  padding: 0rem 0;
}

.about-card {
  background-color: var(--bs-light);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

.about-card .row {
  margin: 0;
  max-width: 100%;
}

/* About card navbar */
.about-card-navbar {
  display: flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background-color: var(--bs-light) !important;
  border-top: 1px solid var(--bs-border-color);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  margin-bottom: 0;
  min-height: 36px;
}

.about-card-navbar-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ff7900;
  white-space: nowrap;
  margin-right: 0.75rem;
}

.about-card-navbar .nav-link {
  color: var(--bs-dark) !important;
  position: relative;
  transition: all 0.2s ease;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  background: transparent;
  font-size: 0.85rem;
}

.about-card-navbar .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--bs-success);
  transition: width 0.3s ease;
}

.about-card-navbar .nav-link:hover:after,
.about-card-navbar .nav-item.active .nav-link:after {
  width: 100%;
}

.about-card-navbar .nav-link:hover {
  color: var(--bs-success) !important;
}

.bottom-connect {
  display: flex;
  justify-content: center;
}

.bottom-connect-navbar {
  display: flex;
  align-items: center;
  width: min(100%, 720px);
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent !important;
}

.bottom-connect-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff7900;
  white-space: nowrap;
  margin-right: 0.75rem;
}

.bottom-connect-navbar .nav-link {
  color: var(--bs-dark) !important;
  position: relative;
  transition: all 0.2s ease;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  background: transparent !important;
  font-size: 0.85rem;
}

.bottom-connect-navbar .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--bs-success);
  transition: width 0.3s ease;
}

.bottom-connect-navbar .nav-link:hover:after {
  width: 100%;
}

.bottom-connect-navbar .nav-link:hover {
  color: var(--bs-success) !important;
}

/* Profile Sidebar */
.profile-sidebar {
  background: linear-gradient(135deg, var(--bs-success) 0%, var(--bs-dark) 100%);
  border-right: 1px solid var(--bs-border-color);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--bs-light);
  height: 100%;
}

.profile-img-container {
  width: 220px;
  height: 220px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

  /* filter: grayscale(100%);
  transition: filter 0.3s ease;

.profile-img:hover {
  filter: grayscale(0%);
} */

.profile-name {
  margin-bottom: 0.7rem;
  font-size: 2.25rem;
}

.profile-title {
  color: var(--bs-light);
  margin-bottom: 0.15rem;
  font-size: 1.3rem;
  line-height: 1.4;
}



/* About Content */
.about-content {
  padding: 2.5rem;
}

.about-content p,
.about-content li {
  text-align: justify;
  text-justify: inter-word;
}



/* Location
.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bs-light);
} */

/* Contact Button */
.btn-primary {
  background-color: var(--bs-success);
  border-color: var(--bs-success);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--bs-dark);
  border-color: var(--bs-dark);
}

/* Home overview sections */
.impact-overview,
.mentoring-overview,
.explore-overview {
  border-top: 1px solid var(--bs-border-color);
  padding-top: 2rem;
}

/* Impact KPIs */
.impact-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.impact-kpi {
  background-color: var(--bs-light);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  padding: 0.88rem 1.05rem;
}

.impact-kpi-value {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.impact-kpi-label {
  margin: 0.35rem 0 0;
  color: var(--bs-secondary-color);
}

.impact-note {
  font-size: 0.82rem;
}

.impact-kpi-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.impact-venue-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--bs-border-color);
  background-color: var(--bs-light);
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
}

/* Mentoring */
.mentoring-card {
  background-color: var(--bs-light);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}

.people-grp {
  margin-bottom: 0;
}

.people-group-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-success);
  margin-bottom: 0.6rem;
}

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

.mentee-grid.compact {
  gap: 0.7rem;
}

.mentee-card {
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 0.95rem 1rem;
}

.mentee-card.compact {
  padding: 0.72rem 0.85rem;
}

.mentee-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.12rem;
}

.mentee-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.mentee-name {
  font-size: 0.98rem;
  margin: 0;
}

.mentee-name a {
  color: inherit;
  text-decoration: none;
}

.mentee-name a:hover {
  color: var(--bs-success);
}

.mentee-meta {
  margin-bottom: 0.32rem;
  color: var(--bs-secondary-color);
  font-size: 0.84rem;
  line-height: 1.35;
}

.mentee-line {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
}

.mentee-line a {
  color: var(--bs-success);
  text-decoration: none;
}

.mentee-line a:hover {
  text-decoration: underline;
}

.mentee-line + .mentee-line {
  margin-top: 0.1rem;
}

.mentee-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mentee-badge.official {
  background-color: rgba(var(--bs-success-rgb), 0.12);
  color: var(--bs-success);
}

.mentee-badge.contributor {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--bs-secondary-color);
}

/* Explore Grid (commented out but preserved) */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.explore-card {
  display: block;
  background-color: var(--bs-light);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explore-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.explore-card p {
  margin: 0;
  color: var(--bs-secondary-color);
}

.explore-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* =============================================
   POST — RESPONSIVE (768px)
   ============================================= */

@media (max-width: 768px) {
  .post-wrapper {
    flex-direction: column;
  }

  .post {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .post-toc {
    display: none !important;
  }

  .post-header-card {
    padding: 1.5rem 1.25rem;
  }

  .post-title {
    font-size: 1.7rem;
  }

  .post-authors,
  .post-date,
  .post-venue,
  .post-affiliations,
  .post-copyright,
  .post-thanks {
    font-size: 0.95rem;
  }

  .post-nav .nav-link {
    font-size: 0.95rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .post-content {
    font-size: 0.98rem;
    line-height: 1.65;
    text-align: justify;
  }

  .post-content p,
  .post-content li,
  .post-content blockquote {
    font-size: 0.98rem;
  }

  .post-content h2 {
    font-size: 1.35rem;
  }

  .post-content h3 {
    font-size: 1.15rem;
  }

  .post-content table {
    font-size: 0.85rem;
  }

  #citationTabs + .tab-content pre {
    font-size: 0.92rem;
  }

  .pdf-container iframe {
    height: 500px;
  }
}

/* =============================================
   POST — RESPONSIVE (576px)
   ============================================= */

@media (max-width: 575.98px) {
  .post-header-card {
    padding: 1.25rem 1rem;
  }

  .post-title {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .post-authors,
  .post-date,
  .post-venue,
  .post-affiliations,
  .post-copyright,
  .post-thanks {
    font-size: 0.88rem;
  }

  .post-nav {
    gap: 0.25rem !important;
  }

  .post-nav .nav-link {
    font-size: 0.9rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .post-content {
    font-size: 0.93rem;
    line-height: 1.6;
    text-align: justify;
  }

  .post-content p,
  .post-content li,
  .post-content td,
  .post-content th,
  .post-content figcaption,
  .post-content .citation,
  .post-content .csl-bib-body {
    font-size: 0.93rem;
  }

  .post-content h2 {
    font-size: 1.2rem;
  }

  .post-content h3 {
    font-size: 1.05rem;
  }

  .post-content figure img {
    max-width: 100%;
  }

  .post-content table {
    font-size: 0.8rem;
  }

  #citationTabs + .tab-content pre {
    font-size: 0.85rem;
    padding: 1rem;
  }

  .copy-btn,
  #citationTabs .nav-link {
    font-size: 0.9rem;
  }

  .pdf-container iframe {
    height: 420px;
  }
}

/* =============================================
   RESUME — RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .header-content {
    align-items: flex-start;
  }

  .logo-container {
    min-width: 64px;
    width: 64px;
    height: 64px;
  }

  .logo-container img {
    max-width: 64px;
    max-height: 64px;
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .date-badge {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .experience-title,
  .education-title {
    font-size: 1.05rem;
  }

  .institution,
  .location,
  .date-badge,
  .accordion-body {
    font-size: 0.92rem;
  }

  #resumeTabs .nav-link {
    font-size: 1.1rem;
    padding: 0.875rem 1rem;
  }

  #resumeTabs {
    flex-direction: row;
    justify-content: space-between;
  }

  #resumeTabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .accordion-button {
    padding: 1rem;
  }

  .experience-title,
  .education-title {
    font-size: 1rem;
    line-height: 1.35;
  }

  .institution,
  .location,
  .date-badge,
  .accordion-body,
  .accordion-body p,
  .accordion-body li {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  #resumeTabs .nav-link {
    font-size: 1rem;
    padding: 0.75rem 0.875rem;
  }
}

@media (max-width: 480px) {
  #resumeTabs {
    gap: 0.25rem;
  }

  #resumeTabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
  }

  .accordion-body {
    padding: 0 1rem 1rem 1rem;
  }

  .institution,
  .location,
  .date-badge {
    font-size: 0.88rem;
  }

  .experience-title,
  .education-title {
    font-size: 0.98rem;
  }
}

/* =============================================
   HOME PAGE — RESPONSIVE
   ============================================= */

@media (max-width: 991px) {
  .about-card {
    flex-direction: column;
  }

  .profile-sidebar {
    border-right: none;
    border-bottom: 1px solid #dee2e6;
  }

  .about-content {
    padding: 2rem 1.5rem;
  }

  .impact-kpis,
  .explore-grid,
  .mentee-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .profile-img-container {
    width: 140px;
    height: 140px;
  }

  .about-content {
    padding: 1.5rem;
  }

  .about-content h2 {
    font-size: 1.75rem;
  }

  .about-content p,
  .about-content li {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 575px) {
  #content {
    text-align: left;
  }

  .about-section {
    margin-bottom: 2rem !important;
  }

  .profile-header {
    padding: 1.5rem 1rem 1rem;
  }

  .about-content {
    padding: 1.25rem;
  }

  .about-content ul {
    padding-left: 1.25rem;
  }

  .about-content h2 {
    font-size: 1.5rem;
  }

  .about-content p,
  .about-content li {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .modal-dialog {
    margin: 0.75rem;
  }
}

/* =============================================
   RESEARCH THEMES
   ============================================= */

.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.theme-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background-color: var(--bs-light);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--bs-success);
  text-decoration: none;
}

.theme-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-color: rgba(var(--bs-success-rgb), 0.1);
  color: var(--bs-success);
}

.theme-visual svg {
  width: 90%;
  height: 90%;
}

.theme-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  flex: 1;
}

.theme-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--bs-dark);
}

.theme-card-description {
  font-size: 0.88rem;
  color: var(--bs-secondary-color);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .themes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }

  .theme-card {
    padding: 1rem;
  }

  .theme-card-title {
    font-size: 1rem;
  }

  .theme-card-description {
    font-size: 0.85rem;
  }
}

.theme-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--bs-light);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--bs-success);
  text-decoration: none;
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: rgba(var(--bs-success-rgb), 0.1);
  color: var(--bs-success);
}

.theme-icon svg {
  width: 22px;
  height: 22px;
}

.theme-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--bs-dark);
}

.theme-card-description {
  font-size: 0.92rem;
  color: var(--bs-secondary-color);
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

/* =============================================
    THEME BADGES (on publication/patent cards)
    ============================================= */

.post-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.theme-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.theme-badge--ml-theory {
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border-color: rgba(13, 110, 253, 0.25);
}

.theme-badge--semantic-comms {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
  border-color: rgba(25, 135, 84, 0.25);
}

.theme-badge--signal-processing {
  background-color: rgba(255, 121, 0, 0.1);
  color: #ff7900;
  border-color: rgba(255, 121, 0, 0.25);
}

@media (max-width: 991px) {
  .themes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }

  .theme-card {
    padding: 1rem 1.25rem;
  }

  .theme-card-title {
    font-size: 1rem;
  }

  .theme-card-description {
    font-size: 0.88rem;
  }
}

/* =============================================
   PROJECTS GRID
   ============================================= */

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--bs-light);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  align-items: flex-start;
}

.project-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: #fff;
  padding: 0.3rem;
}

.project-info {
  flex-grow: 1;
}

.project-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

.project-info h3 a {
  color: var(--bs-dark);
  text-decoration: none;
}

.project-info h3 a:hover {
  color: var(--bs-success);
  text-decoration: underline;
}

.project-dates {
  font-size: 0.82rem;
  color: var(--bs-secondary-color);
  margin: 0 0 0.4rem;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--bs-body-color);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .project-item {
    flex-direction: column;
    padding: 1rem;
  }

  .project-logo {
    width: 64px;
    height: 64px;
  }
}

/* =============================================
   ARCHIVE FILTERS
   ============================================= */

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  background-color: var(--bs-light);
  color: var(--bs-secondary-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--bs-success);
  color: var(--bs-dark);
}

.filter-btn.active {
  background-color: var(--bs-success);
  border-color: var(--bs-success);
  color: #fff;
}

.filter-count {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
}

.filter-btn.active .filter-count {
  opacity: 1;
}

/* =============================================
   RESUME SUMMARY
   ============================================= */

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

.resume-education-summary p,
.resume-experience-summary p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--bs-body-color);
}

.resume-education-summary strong,
.resume-experience-summary strong {
  color: var(--bs-dark);
}

@media (max-width: 767px) {
  .resume-summary {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   NAV BUTTON - RESUME
   ============================================= */

.btn-resume {
  width: 100%;
}

/* =============================================
   PROJECTS OVERVIEW SECTION
   ============================================= */

.projects-overview {
  border-top: 1px solid var(--bs-border-color);
  padding-top: 2rem;
}
