/* css styles */

/* ── Global Responsive ── */
img {
  max-width: 100%;
  height: auto;
}

table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.title-block-banner .title {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ── Mentoring Grid: phone ── */
@media (max-width: 480px) {
  .quarto-listing.quarto-listing-container-grid .list.grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Category Filters ── */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 960px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.category-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.category-btn.active {
  background: #2b6cb0;
  color: #ffffff;
  border-color: #2b6cb0;
}

/* ── Project Cards ── */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.project-card {
  display: flex;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.project-image {
  flex: 0 0 300px;
  overflow: hidden;
  background: #f7fafc;
}

.project-image p {
  margin: 0;
  line-height: 0;
  width: 100%;
  height: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-content {
  flex: 1;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  margin-top: 0 !important;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.project-content > p {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  background: #edf2f7;
  color: #2d3748;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2b6cb0;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1.5px solid #2b6cb0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.project-btn:hover {
  background: #2b6cb0;
  color: #ffffff;
  text-decoration: none;
}

/* ── Responsive: tablet ── */
@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
  }

  .project-image {
    flex: none;
    aspect-ratio: 16 / 9;
  }

  .project-content {
    padding: 1.25rem 1.5rem;
  }

  .project-title {
    font-size: 1.05rem;
  }
}

/* ── Responsive: phone ── */
@media (max-width: 480px) {
  .project-grid {
    padding: 0 0.5rem;
    gap: 1.5rem;
  }

  .project-card {
    border-radius: 10px;
  }

  .project-content {
    padding: 1rem 1rem;
  }

  .project-title {
    font-size: 0.95rem;
  }

  .project-content > p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }

  .project-btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    width: 100%;
    justify-content: center;
  }

  .project-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ── Responsive: very small phone (≤360px) ── */
@media (max-width: 360px) {
  .project-grid {
    padding: 0 0.25rem;
    gap: 1rem;
  }

  .project-content {
    padding: 0.75rem;
  }

  .project-title {
    font-size: 0.9rem;
  }

  .project-content > p {
    font-size: 0.8rem;
  }
}

/* ── Blog Listing ── */
.quarto-listing-category .category {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.quarto-listing-category .category.active {
  background: #2b6cb0;
  color: #ffffff;
}

/* List view card styling */
#blog-listing .quarto-post {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

#blog-listing .quarto-post:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

#blog-listing .quarto-post .thumbnail {
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 150px;
}

#blog-listing .quarto-post .thumbnail img {
  border-radius: 8px;
  object-fit: cover;
}

#blog-listing .quarto-post .body h3.listing-title a {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  text-decoration: none;
}

#blog-listing .quarto-post .body h3.listing-title a:hover {
  color: #2b6cb0;
}

#blog-listing .quarto-post .listing-description {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.6;
}

#blog-listing .quarto-post .listing-categories .listing-category {
  display: inline-block;
  background: #edf2f7;
  color: #2d3748;
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-right: 0.3rem;
}

#blog-listing .quarto-post .metadata {
  font-size: 0.8rem;
  color: #718096;
}

@media (max-width: 768px) {
  #blog-listing .quarto-post {
    border-radius: 10px;
    padding: 1rem 1.25rem;
  }
  #blog-listing .quarto-post .thumbnail {
    flex: 0 0 100px;
  }
  #blog-listing .quarto-post .body h3.listing-title a {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #blog-listing .quarto-post {
    padding: 0.75rem 1rem;
    flex-direction: column;
  }
  #blog-listing .quarto-post .thumbnail {
    flex: none;
    width: 100%;
    max-height: 160px;
    overflow: hidden;
    margin-bottom: 0.75rem;
  }
  #blog-listing .quarto-post .thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  #blog-listing .quarto-post .body h3.listing-title a {
    font-size: 0.95rem;
  }
  #blog-listing .quarto-post .listing-description {
    font-size: 0.82rem;
  }
  #blog-listing .quarto-post .listing-categories .listing-category {
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
  }
  .quarto-listing-category .category {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }
}

/* ── Playlist Cards ── */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.playlist-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 1.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.playlist-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 0.5rem;
}

.playlist-desc {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

@media (max-width: 480px) {
  .playlist-grid {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }

  .playlist-card {
    padding: 1.25rem;
  }
}

/* ── Publications ─────────────────────────────────────────────────────────── */

/* Two-column wrapper: main list + right sidebar */
.pub-page-wrap {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.pub-main-col {
  flex: 1;
  min-width: 0;
}

.pub-sidebar-col {
  flex: 0 0 200px;
  width: 200px;
  position: sticky;
  top: 80px;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.pub-sidebar-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0 0 0.5rem;
}

.pub-sidebar-btns {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pub-sidebar-btns .pub-fbtn {
  text-align: left;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: normal;
}

.pub-fcount {
  font-size: 0.68rem;
  color: #94a3b8;
  flex-shrink: 0;
  margin-left: 0.25rem;
}

.pub-sidebar-btns .pub-fbtn.active .pub-fcount {
  color: rgba(255,255,255,0.7);
}

/* Mobile: stack sidebar above list */
@media (max-width: 768px) {
  .pub-page-wrap {
    flex-direction: column-reverse;
    gap: 1rem;
  }
  .pub-sidebar-col {
    position: static;
    width: 100%;
    flex: none;
  }
  .pub-sidebar-btns {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .pub-sidebar-btns .pub-fbtn {
    width: auto;
    flex: none;
  }
}

/* Stats bar */
.pub-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-width: 960px;
}

.pub-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 80px;
  padding: 0.25rem 0.5rem;
}

.pub-stat-divider {
  width: 1px;
  height: 2.5rem;
  background: #e2e8f0;
}

.pub-stat-n {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1;
}

.pub-stat-peer  { color: #2b6cb0; }
.pub-stat-under { color: #b45309; }
.pub-stat-conf  { color: #065f46; }

.pub-stat-l {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
  text-align: center;
}

/* Note */
.pub-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  max-width: 960px;
}


.pub-fbtn {
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.28rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pub-fbtn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.pub-fbtn.active {
  background: #2b6cb0;
  color: #fff;
  border-color: #2b6cb0;
}

/* Publication list */
.pub-list {
  width: 100%;
}

/* Year sections */
.pub-year-section {
  margin-bottom: 2.5rem;
}

.pub-year-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.pub-yr-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
}

.pub-yr-count {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Publication item */
.pub-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.85rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pub-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.pub-hidden { display: none !important; }

/* Badges */
.pub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.55rem;
}

.pbadge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.pbadge-peer  { background: #ebf4ff; color: #2b6cb0; }
.pbadge-under { background: #fffbeb; color: #b45309; }
.pbadge-conf  { background: #ecfdf5; color: #065f46; }
.pbadge-corr  { background: #faf5ff; color: #6b21a8; }
.pbadge-cat   { background: #f1f5f9; color: #475569; }

/* Title */
.pub-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.pub-title a {
  color: #1a202c;
  text-decoration: none;
}

.pub-title a:hover {
  color: #2b6cb0;
  text-decoration: underline;
}

/* Authors */
.pub-authors {
  font-size: 0.84rem;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

/* Journal / venue */
.pub-source {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

/* Inline status badge */
.pub-status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.pub-status-submitted    { background: #fef3c7; color: #92400e; }
.pub-status-under-review { background: #fee2e2; color: #991b1b; }

/* Action buttons */
.pub-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pub-doi-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #2b6cb0;
  text-decoration: none;
  padding: 0.28rem 0.8rem;
  border: 1.5px solid #2b6cb0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pub-doi-btn:hover {
  background: #2b6cb0;
  color: #fff;
  text-decoration: none;
}

/* No results */
.pub-no-results {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  max-width: 960px;
}

/* Publications responsive */
@media (max-width: 768px) {
  .pub-stats    { padding: 0.9rem 1.1rem; gap: 0; }
  .pub-stat-n   { font-size: 1.45rem; }
  .pub-item     { padding: 0.9rem 1.1rem; }
  .pub-title    { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .pub-stats        { justify-content: space-around; padding: 0.75rem; }
  .pub-stat-divider { display: none; }
  .pub-item         { padding: 0.8rem 0.9rem; }
  .pub-title        { font-size: 0.86rem; }
  .pub-authors      { font-size: 0.78rem; }
  .pub-source       { font-size: 0.74rem; }
  .pub-yr-title     { font-size: 1.1rem; }
}

/* ── Mentorship Program Page ── */

.mentor-header {
  background: linear-gradient(135deg, #f8fafc 0%, #edf4ff 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.mentor-profile-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.mentor-photo-wrap {
  flex: 0 0 auto;
  text-align: center;
}

.mentor-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.quick-responder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff7ed;
  color: #c05621;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid #fbd38d;
  margin-top: 0.5rem;
}

.mentor-info { flex: 1; }

.mentor-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.25rem;
}

.mentor-title-line {
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 0.75rem;
}

.mentor-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #718096;
}

.mentor-rating-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.stars { color: #f6ad55; }
.rating-num { font-weight: 700; color: #1a202c; }
.rating-reviews { color: #718096; font-size: 0.82rem; }

.mentor-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.mentor-skill-tag {
  background: #ebf4ff;
  color: #2b6cb0;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid #bee3f8;
}

.mentor-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-apply-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #2b6cb0;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: none;
}

.btn-apply-primary:hover {
  background: #2c5282;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43,108,176,0.35);
}

.btn-message-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: #2b6cb0 !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none !important;
  border: 1.5px solid #2b6cb0;
  transition: all 0.2s ease;
}

.btn-message-outline:hover { background: #ebf4ff; }

/* Stats strip */
.mentor-stats-strip {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.mstat {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 0.25rem 0.5rem;
}

.mstat + .mstat { border-left: 1px solid #e2e8f0; }

.mstat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2b6cb0;
  line-height: 1;
}

.mstat-label {
  font-size: 0.72rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

/* Page layout */
.mentor-page-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.mentor-page-main { flex: 1; min-width: 0; }

.mentor-page-sidebar {
  flex: 0 0 300px;
  width: 300px;
  position: sticky;
  top: 80px;
}

/* Sections */
.mentor-section { margin-bottom: 2.5rem; }

.mentor-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a202c;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.mentor-about-text {
  font-size: 0.92rem;
  color: #4a5568;
  line-height: 1.75;
}

.mentor-key-points {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.mentor-key-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #4a5568;
  padding: 0.35rem 0;
  line-height: 1.5;
}

.mentor-key-points li::before {
  content: "✓";
  color: #2b6cb0;
  font-weight: 700;
  flex-shrink: 0;
}

.mentor-skills-full {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mskill {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

/* Reviews */
.mentor-review-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.review-stars { color: #f6ad55; font-size: 0.9rem; margin-bottom: 0.5rem; }

.review-text {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.review-author { display: flex; align-items: center; gap: 0.75rem; }

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ebf4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2b6cb0;
  flex-shrink: 0;
}

.review-name { font-size: 0.85rem; font-weight: 600; color: #1a202c; }
.review-plan { font-size: 0.75rem; color: #718096; }

/* Pricing cards */
.plan-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.4rem;
  margin-bottom: 1rem;
}

.plan-card.featured {
  border-color: #2b6cb0;
  box-shadow: 0 4px 20px rgba(43,108,176,0.15);
}

.plan-badge {
  display: inline-block;
  background: #2b6cb0;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.2rem;
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2b6cb0;
  line-height: 1;
}

.plan-price-unit { font-size: 0.85rem; color: #718096; }

.plan-desc { font-size: 0.8rem; color: #718096; margin: 0.35rem 0 0.75rem; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #4a5568;
  padding: 0.28rem 0;
}

.plan-features li::before {
  content: "✓";
  color: #38a169;
  font-weight: 700;
  flex-shrink: 0;
}

.plan-apply-btn {
  display: block;
  text-align: center;
  background: #2b6cb0;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.plan-apply-btn:hover { background: #2c5282; }

.plan-apply-btn.outline {
  background: transparent;
  color: #2b6cb0 !important;
  border: 1.5px solid #2b6cb0;
}

.plan-apply-btn.outline:hover { background: #ebf4ff; }

.plan-note {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.plan-not-sure {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #4a5568;
}

/* ── Mentor Plan Cards (EJS listing) ── */
.mplan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.mplan-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.mplan-card.mplan-featured {
  border-color: #2b6cb0;
  box-shadow: 0 4px 24px rgba(43,108,176,0.15);
}

.mplan-badge {
  display: inline-block;
  background: #2b6cb0;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  width: fit-content;
}

.mplan-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.25rem;
}

.mplan-price-row {
  margin: 0.25rem 0 0;
  line-height: 1.2;
}

.mplan-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2b6cb0;
  line-height: 1;
}

.mplan-unit {
  font-size: 0.85rem;
  color: #718096;
}

.mplan-price-bdt {
  margin: 0.1rem 0 0;
  line-height: 1.2;
}

.mplan-bdt-amount {
  font-size: 1rem;
  font-weight: 600;
  color: #276749;
}

.mplan-bdt-unit {
  font-size: 0.78rem;
  color: #718096;
}

.mplan-desc {
  font-size: 0.82rem;
  color: #718096;
  margin: 0.4rem 0 0.85rem;
}

.mplan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
}

.mplan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #4a5568;
  padding: 0.28rem 0;
}

.mplan-features li::before {
  content: "✓";
  color: #38a169;
  font-weight: 700;
  flex-shrink: 0;
}

.mplan-btn {
  display: block;
  text-align: center;
  background: #2b6cb0;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.mplan-btn:hover { background: #2c5282; }

.mplan-btn.mplan-btn-outline {
  background: transparent;
  color: #2b6cb0 !important;
  border: 1.5px solid #2b6cb0;
}

.mplan-btn.mplan-btn-outline:hover { background: #ebf4ff; }

.mplan-note {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.mplan-cta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #4a5568;
  margin-bottom: 2rem;
}

.mplan-cta-link {
  flex-shrink: 0;
  font-size: 0.85rem !important;
  padding: 0.5rem 1.1rem !important;
}

/* ── Mentor Review Cards (EJS listing) ── */
.mreview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mreview-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.mreview-stars {
  color: #f6ad55;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.mreview-text {
  font-size: 0.87rem;
  color: #4a5568;
  line-height: 1.68;
  flex: 1;
  margin-bottom: 1rem;
}

.mreview-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mreview-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ebf4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2b6cb0;
  flex-shrink: 0;
  vertical-align: middle;
}

.mreview-authorinfo {
  display: inline-block;
  vertical-align: middle;
  flex: 1;
  min-width: 0;
}

.mreview-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mreview-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a202c;
}

.mreview-plan {
  font-size: 0.75rem;
  color: #718096;
}

/* ── Mentor Endorsement Cards (reuse mreview-* design) ── */
.mendorse-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.1rem;
}

.mendorse-quote {
  font-size: 1.6rem;
  color: #f6ad55;
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.mendorse-relation-badge {
  background: #ebf4ff;
  color: #2b6cb0;
  border: 1px solid #bee3f8;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
}

/* ── Mentor section helpers ── */
.mentor-section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.mentor-section-sub {
  font-size: 0.85rem;
  color: #c05621;
  font-weight: 600;
  background: #fff7ed;
  border: 1px solid #fbd38d;
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  margin: 0;
}

/* ── FAQ (details/summary) ── */
.mfaq-list { margin-bottom: 2rem; }

.mfaq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.mfaq-q {
  background: #f8fafc;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a202c;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mfaq-q::-webkit-details-marker { display: none; }

.mfaq-q::after {
  content: "+";
  font-size: 1.1rem;
  color: #94a3b8;
}

details[open] .mfaq-q::after { content: "−"; }

.mfaq-a {
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.7;
  border-top: 1px solid #e2e8f0;
}

/* ── Responsive: tablet ── */
@media (max-width: 900px) {
  .mplan-grid { grid-template-columns: 1fr; }
  .mreview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mplan-cta-box { flex-direction: column; text-align: center; }
  .mplan-cta-link { width: 100%; justify-content: center; }
}

.spots-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff7ed;
  border: 1px solid #fbd38d;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: #c05621;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* FAQ */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-q {
  background: #f8fafc;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a202c;
}

.faq-a {
  padding: 0.75rem 1.1rem;
  font-size: 0.86rem;
  color: #4a5568;
  line-height: 1.65;
  border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 900px) {
  .mentor-page-layout { flex-direction: column; }
  .mentor-page-sidebar { flex: none; width: 100%; position: static; }
}

@media (max-width: 640px) {
  .mentor-header { padding: 1.5rem; }
  .mentor-profile-row { flex-direction: column; align-items: center; text-align: center; }
  .mentor-cta-row, .mentor-meta-row, .mentor-rating-row, .mentor-skill-tags { justify-content: center; }
  .mstat + .mstat { border-left: none; border-top: 1px solid #e2e8f0; }
  .mstat { width: 50%; flex: none; }
  .mentor-stats-strip { flex-wrap: wrap; }
}

/* ── Pipeline extras ── */
.pipeline-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2b6cb0;
  background: #ebf4ff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.pipeline-io {
  font-size: 0.82rem;
  color: #4a5568;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.pipeline-io-item strong {
  color: #1a202c;
}

/* ============================================================
   TEACHING PORTFOLIO STYLES
   ============================================================ */

/* --- Download Bar --- */
.tp-download-bar {
  background: #1e293b;
  color: #fff;
  padding: 0.7rem 1.5rem;
  margin: -1rem -1rem 2rem -1rem;
  border-radius: 0 0 8px 8px;
}
.tp-download-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tp-download-label { font-size: 0.9rem; opacity: 0.85; }
.tp-download-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}
.tp-download-btn:hover { background: #2563eb; }

/* --- Header --- */
.tp-header {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.tp-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.tp-profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.tp-header-info { flex: 1; min-width: 240px; }
.tp-name { font-size: 1.8rem; font-weight: 800; color: #1e293b; margin: 0 0 0.25rem 0; }
.tp-title { font-size: 1rem; color: #3b82f6; font-weight: 600; margin: 0 0 0.2rem 0; }
.tp-affiliation { font-size: 0.9rem; color: #475569; margin: 0 0 0.2rem 0; }
.tp-location { font-size: 0.87rem; color: #64748b; margin: 0 0 0.75rem 0; }
.tp-contact-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.tp-contact-link {
  font-size: 0.82rem;
  color: #2b6cb0;
  text-decoration: none;
  background: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
  transition: background 0.15s;
}
.tp-contact-link:hover { background: #dbeafe; }

/* --- Stats Strip --- */
.tp-stats-strip {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  background: #1e293b;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.tp-stat { text-align: center; color: #fff; flex: 1; min-width: 100px; }
.tp-stat-num { font-size: 1.7rem; font-weight: 800; color: #60a5fa; }
.tp-stat-label { font-size: 0.78rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.06em; }

/* --- Sections --- */
.tp-section {
  max-width: 960px;
  margin: 0 auto 2.5rem auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}
.tp-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(90deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
}
.tp-section-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: #3b82f6;
  background: #dbeafe;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.tp-section-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 0; }
.tp-section-body { padding: 1.5rem; }

/* --- Philosophy --- */
.tp-philosophy-statement {
  background: #f8fafc;
  border-left: 4px solid #3b82f6;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #334155;
}
.tp-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.tp-principle-card {
  display: flex;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
}
.tp-principle-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.tp-principle-title { font-size: 0.9rem; font-weight: 700; color: #1e293b; margin: 0 0 0.35rem 0; }
.tp-principle-desc { font-size: 0.82rem; color: #475569; line-height: 1.6; margin: 0; }

/* --- Tables --- */
.tp-table-wrap { overflow-x: auto; }
.tp-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.tp-table th {
  background: #f1f5f9;
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tp-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: top;
  line-height: 1.5;
}
.tp-table tr:last-child td { border-bottom: none; }
.tp-table tr:hover td { background: #fafbff; }
.tp-td-year { white-space: nowrap; font-weight: 600; color: #64748b; }
.tp-td-course { font-weight: 500; }
.tp-td-center { text-align: center; font-weight: 600; }
.tp-table-link { color: #2b6cb0; text-decoration: none; }
.tp-table-link:hover { text-decoration: underline; }
.tp-level-badge {
  display: inline-block;
  font-size: 0.72rem;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}
.tp-role-badge {
  display: inline-block;
  font-size: 0.72rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

/* --- Materials Grid --- */
.tp-materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.tp-material-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tp-material-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.tp-material-header { display: flex; align-items: center; gap: 0.5rem; }
.tp-material-icon { font-size: 1.2rem; }
.tp-material-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2b6cb0;
  background: #dbeafe;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.tp-material-title { font-size: 0.92rem; font-weight: 700; color: #1e293b; margin: 0; }
.tp-material-desc { font-size: 0.82rem; color: #475569; line-height: 1.55; margin: 0; flex: 1; }
.tp-material-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tp-tag {
  font-size: 0.72rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.15rem 0.5rem;
}

/* --- Timeline --- */
.tp-timeline { display: flex; flex-direction: column; gap: 0; }
.tp-timeline-item {
  display: grid;
  grid-template-columns: 80px 24px 1fr;
  gap: 0 1rem;
  align-items: start;
  padding-bottom: 1.25rem;
  position: relative;
}
.tp-timeline-item:last-child { padding-bottom: 0; }
.tp-timeline-year { font-size: 0.78rem; font-weight: 700; color: #64748b; padding-top: 2px; text-align: right; }
.tp-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #bfdbfe;
  margin-top: 4px;
  position: relative;
  flex-shrink: 0;
}
.tp-timeline-activity { font-size: 0.9rem; font-weight: 600; color: #1e293b; margin-bottom: 0.2rem; }
.tp-timeline-meta { font-size: 0.8rem; color: #64748b; }
.tp-type-chip {
  display: inline-block;
  font-size: 0.7rem;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 0.1rem 0.45rem;
  margin-left: 4px;
}

/* --- Feedback Grid --- */
.tp-feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.tp-feedback-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.1rem;
}
.tp-feedback-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 0.5rem; }
.tp-star { display: inline-block; }
.tp-feedback-quote {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 0.75rem 0;
  border: none;
  padding: 0;
}
.tp-feedback-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.tp-feedback-meta strong { font-size: 0.85rem; color: #1e293b; }
.tp-feedback-course, .tp-feedback-institution { font-size: 0.78rem; color: #64748b; }

/* --- Awards --- */
.tp-awards-list { display: flex; flex-direction: column; gap: 1rem; }
.tp-award-item {
  display: flex;
  gap: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  align-items: flex-start;
}
.tp-award-year {
  font-size: 0.78rem;
  font-weight: 800;
  color: #3b82f6;
  background: #dbeafe;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  height: fit-content;
}
.tp-award-name { font-size: 0.92rem; font-weight: 700; color: #1e293b; margin-bottom: 0.2rem; }
.tp-award-institution { font-size: 0.8rem; color: #64748b; margin-bottom: 0.3rem; }
.tp-award-desc { font-size: 0.82rem; color: #475569; }

/* --- Demo Card --- */
.tp-demo-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 1.25rem;
}
.tp-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.tp-demo-full { grid-column: 1 / -1; }
.tp-demo-field { display: flex; flex-direction: column; gap: 0.2rem; }
.tp-demo-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #0284c7; }
.tp-demo-value { font-size: 0.88rem; color: #1e293b; }

/* --- Development List --- */
.tp-dev-list { display: flex; flex-direction: column; gap: 0.85rem; }
.tp-dev-item { display: flex; gap: 1rem; align-items: flex-start; }
.tp-dev-dot { width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; margin-top: 6px; flex-shrink: 0; }
.tp-dev-activity { font-size: 0.9rem; font-weight: 600; color: #1e293b; margin-bottom: 0.2rem; }
.tp-dev-desc { font-size: 0.83rem; color: #475569; line-height: 1.55; }

/* --- Bottom CTA --- */
.tp-bottom-cta {
  max-width: 960px;
  margin: 0 auto 2rem auto;
  background: linear-gradient(135deg, #1e293b 0%, #1d4ed8 100%);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: #fff;
}
.tp-cta-content h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0 0 0.5rem 0; }
.tp-cta-content p { font-size: 0.9rem; opacity: 0.8; margin: 0 0 1.25rem 0; }
.tp-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.tp-cta-primary {
  background: #3b82f6;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.tp-cta-primary:hover { background: #2563eb; color: #fff; }
.tp-cta-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}
.tp-cta-secondary:hover { background: rgba(255,255,255,0.25); }

/* ============================================================
   PRINT / PDF STYLES
   ============================================================ */

.print-only-header { display: none; }

@media print {
  .no-print,
  .navbar,
  .quarto-title-banner,
  .page-footer,
  footer,
  #quarto-header,
  #TOC,
  .quarto-reader-toggle,
  .sidebar,
  .nav-footer,
  .quarto-title-meta,
  .tp-download-bar,
  .tp-bottom-cta { display: none !important; }

  .print-only-header { display: block !important; margin-bottom: 1rem; }

  @page { size: A4 portrait; margin: 18mm 15mm; }

  body { font-size: 11pt !important; color: #000 !important; }

  .tp-header,
  .tp-stats-strip,
  .tp-section {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .print-section { page-break-inside: avoid; }
  .tp-section { border: 1px solid #ccc !important; margin-bottom: 12pt !important; }

  .tp-header { background: #f5f5f5 !important; border: 1px solid #ccc !important; padding: 12pt !important; }
  .tp-profile-photo { width: 80px !important; height: 80px !important; }
  .tp-name { font-size: 16pt !important; }

  .tp-stats-strip {
    background: #1e293b !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 8pt 12pt !important;
    border-radius: 0 !important;
  }

  .tp-table { font-size: 8.5pt !important; }
  .tp-table th {
    background: #f0f0f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .tp-principles-grid,
  .tp-materials-grid,
  .tp-feedback-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .tp-section-num,
  .tp-award-year {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .tp-feedback-stars { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


/* ═══════════════════════════════════════════════════════════════
   TUTORIAL SERIES  (tut-*)
   ═══════════════════════════════════════════════════════════════ */

/* ── Series Catalog ── */
.tut-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.tut-series-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tut-series-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
  text-decoration: none;
}

.tut-series-card-placeholder {
  cursor: default;
  opacity: 0.72;
}

.tut-series-card-placeholder:hover {
  box-shadow: none;
  transform: none;
}

.tut-series-card-banner {
  height: 120px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2b6cb0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tut-banner-coming {
  background: linear-gradient(135deg, #374151 0%, #6b7280 100%);
}

.tut-series-card-icon {
  font-size: 3.2rem;
  line-height: 1;
}

.tut-series-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tut-series-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.45rem;
}

.tut-series-card-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  flex: 1;
}

.tut-series-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.tut-series-stat-pill {
  background: #f1f5f9;
  color: #475569;
  border-radius: 20px;
  padding: 0.18rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 500;
}

.tut-series-status {
  margin-left: auto;
  background: #dcfce7;
  color: #15803d;
  border-radius: 20px;
  padding: 0.18rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.tut-status-soon {
  background: #fef9c3;
  color: #854d0e;
}

/* ── Series Overview Strip ── */
.tut-series-overview {
  max-width: 960px;
  margin: 1.5rem auto 2rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.tut-stat-group {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1rem;
}

.tut-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.tut-stat-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2b6cb0;
  line-height: 1;
}

.tut-stat-lbl {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tut-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tut-tool-chip {
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── Wrapper ── */
.tut-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* ── Module Header ── */
.tut-module {
  margin-bottom: 2.5rem;
}

.tut-module-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.tut-module-num {
  background: #2b6cb0;
  color: #ffffff;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tut-module-info {
  flex: 1;
}

.tut-module-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.tut-module-count {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

.tut-module-progress {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-shrink: 0;
}

.tut-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid #cbd5e1;
}

.tut-progress-dot.dot-available {
  background: #2b6cb0;
  border-color: #2b6cb0;
}

/* ── Lesson Cards ── */
.tut-lessons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tut-lesson {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tut-lesson:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.tut-lesson.coming-soon {
  background: #f8fafc;
  opacity: 0.68;
}

.tut-lesson-icon {
  min-width: 1.4rem;
  padding-top: 0.15rem;
  color: #94a3b8;
  font-size: 1.05rem;
  text-align: center;
  flex-shrink: 0;
}

.tut-lesson-icon.available {
  color: #2b6cb0;
}

.tut-lesson-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  min-width: 2.2rem;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

.tut-lesson.coming-soon .tut-lesson-num {
  color: #cbd5e1;
}

.tut-lesson-body {
  flex: 1;
  min-width: 0;
}

.tut-lesson-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.tut-lesson-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

/* ── Badges ── */
.tut-badge {
  font-size: 0.69rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.14rem 0.55rem;
  white-space: nowrap;
}

.tut-badge-available {
  background: #dcfce7;
  color: #15803d;
}

.tut-badge-coming {
  background: #fef9c3;
  color: #854d0e;
}

.tut-badge-beginner {
  background: #dbeafe;
  color: #1d4ed8;
}

.tut-badge-intermediate {
  background: #ede9fe;
  color: #6d28d9;
}

.tut-badge-advanced {
  background: #fee2e2;
  color: #b91c1c;
}

/* ── Lesson Description & Meta ── */
.tut-lesson-desc {
  font-size: 0.85rem;
  color: #475569;
  margin: 0 0 0.5rem;
  line-height: 1.55;
}

.tut-lesson-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #64748b;
}

.tut-duration {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tut-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tut-tag {
  background: #f1f5f9;
  color: #475569;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
}

/* ── Lesson Links ── */
.tut-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.tut-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f1f5f9;
  color: #1e3a5f;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tut-btn:hover {
  background: #2b6cb0;
  color: #ffffff;
  border-color: #2b6cb0;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .tut-series-overview {
    padding: 1rem;
  }

  .tut-stat-group {
    gap: 1.25rem;
  }

  .tut-module-progress {
    display: none;
  }

  .tut-lesson {
    gap: 0.5rem;
  }

  .tut-lesson-icon {
    display: none;
  }

  .tut-catalog {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ANNDATA ANATOMY DIAGRAM  (ad-*)
   ═══════════════════════════════════════════════════════════════ */

.ad-wrap {
  max-width: 800px;
  margin: 2rem auto 2.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ad-title-bar {
  background: #1e293b;
  color: #f1f5f9;
  padding: 0.65rem 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ad-title-badge {
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.1rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ad-grid {
  display: grid;
  grid-template-columns: 170px 1fr 150px;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "ad-corner  ad-var    ad-varm"
    "ad-obs     ad-x      ad-obsm"
    "ad-uns     ad-layers ad-obsp";
  gap: 8px;
  padding: 10px;
}

/* ── Base cell ── */
.ad-cell {
  border-radius: 9px;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.ad-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.1rem;
}

.ad-type {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.72;
}

.ad-desc {
  font-size: 0.74rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.ad-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.ad-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 0.06rem 0.38rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
  white-space: nowrap;
}

/* ── Grid area assignments ── */
.ad-corner  { grid-area: ad-corner; }
.ad-var     { grid-area: ad-var; }
.ad-varm    { grid-area: ad-varm; }
.ad-obs     { grid-area: ad-obs; }
.ad-x       { grid-area: ad-x; }
.ad-obsm    { grid-area: ad-obsm; }
.ad-uns     { grid-area: ad-uns; }
.ad-layers  { grid-area: ad-layers; }
.ad-obsp    { grid-area: ad-obsp; }

/* ── Corner label ── */
.ad-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: #64748b;
  font-size: 0.72rem;
  text-align: center;
  padding: 0.5rem;
  border: 2px dashed #e2e8f0;
  border-radius: 9px;
  background: #ffffff;
}

.ad-corner-axis {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ad-corner-sub {
  font-size: 0.64rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ── Colour themes ── */
.ad-x {
  background: linear-gradient(145deg, #1e3a5f 0%, #2b6cb0 100%);
  color: #ffffff;
  min-height: 170px;
  justify-content: flex-start;
}

.ad-obs {
  background: linear-gradient(145deg, #14532d 0%, #166534 100%);
  color: #ffffff;
}

.ad-var {
  background: linear-gradient(145deg, #78350f 0%, #92400e 100%);
  color: #ffffff;
}

.ad-varm {
  background: linear-gradient(145deg, #451a03 0%, #78350f 100%);
  color: #ffffff;
}

.ad-obsm {
  background: linear-gradient(145deg, #3b0764 0%, #581c87 100%);
  color: #ffffff;
}

.ad-obsp {
  background: linear-gradient(145deg, #4c1d95 0%, #6d28d9 100%);
  color: #ffffff;
}

.ad-layers {
  background: linear-gradient(145deg, #881337 0%, #9f1239 100%);
  color: #ffffff;
}

.ad-uns {
  background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
}

/* ── Axis label strip ── */
.ad-axis-label {
  font-size: 0.65rem;
  opacity: 0.65;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ad-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "ad-x      ad-x"
      "ad-obs    ad-var"
      "ad-obsm   ad-obsp"
      "ad-layers ad-uns"
      "ad-varm   ad-corner";
  }
  .ad-x { min-height: 120px; }
}

/* ── Newsletter Push Notification ── */
.newsletter-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 360px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s ease;
}
.newsletter-toast.newsletter-toast-show {
  transform: translateY(0);
  opacity: 1;
}
.newsletter-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2b6cb0;
  padding: 0.75rem 1rem;
}
.newsletter-toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin: 0;
}
.newsletter-toast-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.newsletter-toast-close:hover { color: #fff; }
.newsletter-toast iframe {
  display: block;
}
@media (max-width: 480px) {
  .newsletter-toast {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 0.75rem;
  }
}

/* ════════════════════════════════════════
   About Page  (ab-*, edu-*, cert-*)
   ════════════════════════════════════════ */

/* Hero styles removed — using title-block-banner */

/* ════════════════════════════════════════
   Research Overview  (ro-*)
   ════════════════════════════════════════ */

/* Why-public-data strip */
.ro-why-strip {
  background: #ebf4ff;
  border-top: 3px solid #2b6cb0;
  padding: 1.5rem;
}
.ro-why-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.ro-why-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.ro-why-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.ro-why-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.2rem;
}
.ro-why-item p {
  font-size: 0.8rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
}

/* Workflow section */
.ro-workflow-section {
  max-width: 960px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}
.ro-wf-header { margin-bottom: 1rem; }
.ro-wf-badge {
  display: inline-block;
  background: #2b6cb0;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.ro-wf-badge-sc { background: #276749; }
.ro-wf-badge-ml { background: #744210; }
.ro-wf-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a202c;
  margin: 0 0 0.25rem;
}
.ro-wf-subtitle {
  font-size: 0.87rem;
  color: #718096;
  margin: 0;
}

/* Why box */
.ro-why-box {
  background: #f0f7ff;
  border-left: 4px solid #2b6cb0;
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.87rem;
  color: #2d3748;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.ro-why-box-sc { background: #f0fff4; border-left-color: #276749; }
.ro-why-box-ml { background: #fffaf0; border-left-color: #c05621; }
.ro-why-label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2b6cb0;
  margin-bottom: 0.35rem;
}
.ro-why-box-sc .ro-why-label { color: #276749; }
.ro-why-box-ml .ro-why-label { color: #c05621; }

/* Steps flow */
.ro-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 1rem;
  margin-bottom: 1.25rem;
}
.ro-step {
  flex: 1;
  min-width: 110px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 0.6rem 0.75rem;
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ro-step:hover {
  box-shadow: 0 4px 16px rgba(43,108,176,0.12);
  border-color: #2b6cb0;
}
.ro-step-output {
  border-color: #2b6cb0;
  background: #ebf4ff;
}
.ro-step-num {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #2b6cb0;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ro-step-output .ro-step-num { background: #2b6cb0; }
.ro-step-icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
.ro-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.ro-step-sub {
  font-size: 0.65rem;
  color: #718096;
  line-height: 1.4;
}
.ro-arrow {
  font-size: 1.1rem;
  color: #a0aec0;
  padding: 0 0.3rem;
  flex-shrink: 0;
  margin-top: 1rem;
}

/* Tags row */
.ro-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 1rem 0 2rem;
  border-top: 1px solid #edf2f7;
}
.ro-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}
.ro-tag-db   { background: #ebf4ff; color: #2b6cb0; }
.ro-tag-tool { background: #f0fff4; color: #276749; }
.ro-tag-lang { background: #fffbeb; color: #975a16; }

/* Responsive */
@media (max-width: 700px) {
  .ro-steps { flex-direction: column; align-items: stretch; }
  .ro-arrow { transform: rotate(90deg); text-align: center; margin: 0 auto; }
  .ro-step { min-width: unset; }
  .ro-why-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .ro-why-inner { grid-template-columns: 1fr; }
}

/* ── Venture Cards ── */
.venture-list {
  max-width: 860px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.venture-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.venture-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); }
.venture-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.venture-type-badge {
  display: inline-block;
  background: #ebf4ff;
  color: #2b6cb0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.venture-meta {
  font-size: 0.78rem;
  color: #718096;
  margin: 0;
}
.venture-name-link {
  text-decoration: none !important;
}
.venture-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2b6cb0;
  margin: 0 0 0.2rem;
  transition: color 0.2s;
}
.venture-name-link:hover .venture-name { color: #2c5282; text-decoration: underline; }
.venture-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: #4a5568;
  margin: 0 0 0.55rem;
}
.venture-tagline {
  font-size: 0.87rem;
  font-style: italic;
  color: #4a5568;
  margin: 0 0 0.65rem;
  border-left: 3px solid #2b6cb0;
  padding-left: 0.65rem;
}
.venture-desc {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.65;
  margin: 0 0 0.85rem;
}
.venture-highlights {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.venture-highlights li {
  font-size: 0.84rem;
  color: #4a5568;
  line-height: 1.5;
}
.venture-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid #edf2f7;
  flex-wrap: wrap;
}
.venture-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.venture-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #2b6cb0;
  line-height: 1;
}
.venture-stat-label {
  font-size: 0.72rem;
  color: #718096;
  margin-top: 0.15rem;
}
@media (max-width: 640px) {
  .venture-card-top { flex-direction: column; align-items: flex-start; }
  .venture-stats { gap: 1rem; }
}

/* Section headers */
.ab-section-header {
  max-width: 860px;
  margin: 2.5rem auto 0.5rem;
  padding: 0 1.5rem;
  border-left: 4px solid #2b6cb0;
  padding-left: 1rem;
}
.ab-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.15rem;
  color: #111;
}
.ab-section-sub {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

/* ── Education Timeline ── */
.edu-timeline {
  max-width: 860px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  position: relative;
}
.edu-timeline::before {
  content: "";
  position: absolute;
  left: calc(1.5rem + 10px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dee2f5;
}
.edu-item {
  position: relative;
  padding-left: 2.8rem;
  margin-bottom: 1.75rem;
}
.edu-dot {
  position: absolute;
  left: 0.25rem;
  top: 1.1rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2b6cb0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #2b6cb0;
  z-index: 1;
}
.edu-card {
  background: #fff;
  border: 1px solid #e8ecf5;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.edu-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.09); }
.edu-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.edu-degree-badge {
  background: #2b6cb0;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.edu-period {
  font-size: 0.82rem;
  color: #888;
  font-weight: 500;
}
.edu-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.3rem;
}
.edu-institution {
  font-size: 0.88rem;
  color: #555;
  margin: 0 0 0.6rem;
}
.edu-desc {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}
.edu-thesis {
  font-size: 0.85rem;
  color: #333;
  margin: 0 0 0.4rem;
  font-style: italic;
}
.edu-gpa {
  display: inline-block;
  background: #f0f7ff;
  color: #2b6cb0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
}

/* ── Certificates List ── */
.cert-list {
  max-width: 860px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cert-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #edf0f7;
  transition: background 0.15s;
}
.cert-list-item:first-child { border-top: 1px solid #edf0f7; }
.cert-list-item:hover { background: #f8f9ff; }
.cert-list-left { flex-shrink: 0; width: 80px; text-align: center; }
.cert-platform-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cert-list-body { flex: 1; min-width: 0; }
.cert-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.2rem;
  line-height: 1.35;
}
.cert-issuer {
  font-size: 0.82rem;
  color: #666;
  margin: 0 0 0.4rem;
}
.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.cert-skill-tag {
  background: #f0f4ff;
  color: #3a5cc5;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: 20px;
}
.cert-verify-btn {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2b6cb0 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.cert-verify-btn:hover { text-decoration: underline !important; }

/* Responsive */
@media (max-width: 640px) {
  .ab-section-header { margin-top: 2rem; }
  .edu-timeline::before { display: none; }
  .edu-item { padding-left: 0; }
  .edu-dot { display: none; }
  .cert-list-left { display: none; }
}

/* ── Tutorial series card logos ─────────────────────── */
.tut-banner-nextflow {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  gap: 1.5rem;
}
.tut-card-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
