/* ============================================
   Modern CV - Presentation Style
   ============================================ */

:root {
  /* Bluey palette */
  --color-primary: #0EA5E9;
  --color-primary-dark: #0284C7;
  --color-primary-light: #38BDF8;
  --color-accent: #38BDF8;
  --color-warm: #F97316;
  --color-warm-light: #FB923C;
  --color-dark: #0C4A6E;
  --color-dark-muted: #1E3A5A;
  --color-text: #1a1a1a;
  --color-text-secondary: #555;
  --color-text-muted: #666;  /* Was #888, now 5.74:1 contrast (WCAG AA compliant) */
  --color-text-light: #555;  /* For light backgrounds */
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-border: #e8e8e8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-width: min(850px, 90vw);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 0.5rem; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--color-primary-light); }
ul { margin: 0; padding-left: 1.1rem; }
li { margin-bottom: 0.25rem; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.nav-links a:hover { color: var(--color-primary); }

.nav-blog-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1e3a5f 100%);
  padding: 0.4rem 0.5rem 0.4rem 0.75rem;
  border-radius: 25px;
}

.nav-featured-post {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.nav-featured-post:hover {
  color: #fff;
}

.featured-label {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.featured-title {
  font-weight: 500;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-divider {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

.nav-all-posts {
  font-weight: 600;
  color: #fff;
  background: var(--color-warm);
  padding: 0.35rem 0.75rem;
  border-radius: 15px;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

.nav-all-posts:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.nav-featured-wrapper {
  position: relative;
}

.nav-post-preview {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1000;
}

.nav-featured-wrapper:hover .nav-post-preview {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.preview-card {
  width: 300px;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}

.preview-card::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0,0,0,0.03);
}

.preview-card .preview-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-warm);
  margin-bottom: 0.5rem;
}

.preview-card .preview-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
}

.preview-card .preview-excerpt {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.preview-card .preview-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-warm);
  transition: color 0.2s ease;
}

.preview-card .preview-link:hover {
  color: #ea580c;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0.5rem 1rem;
  }

  .nav-name {
    font-size: 0.8rem;
  }

  .nav-name-text {
    display: none;
  }

  .nav-blog-bar {
    padding: 0.3rem 0.4rem 0.3rem 0.5rem;
    gap: 0.5rem;
    font-size: 0.65rem;
  }

  .featured-title {
    max-width: 100px;
  }

  .featured-label {
    display: none;
  }

  .nav-all-posts {
    padding: 0.25rem 0.5rem;
    font-size: 0.6rem;
  }

  .nav-post-preview {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-featured-post {
    display: none;
  }

  .nav-divider {
    display: none;
  }

  .nav-blog-bar {
    background: none;
    padding: 0;
  }

  .nav-all-posts {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 0 2rem;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%230d7377' fill-opacity='0.12'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,1) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero-image {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

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

.hero-text { flex: 1; }

.hero-name {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-summary {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.4rem;
}

.hero-meta { margin-bottom: 0.75rem; }

.hero-affiliation {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
}

.hero-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  background: var(--color-dark);
  color: #fff;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.15s;
  flex: 1 0 auto;
}

.hero-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

.hero-link i { font-size: 0.8rem; }

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 1.5rem 0;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ============================================
   JOURNEY
   ============================================ */
.journey-chapters {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.journey-chapter {
  flex: 1;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1e1e1e 100%);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-chapter:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.chapter-number {
  position: absolute;
  top: -10px;
  right: 8px;
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}

.chapter-content {
  position: relative;
  z-index: 1;
}

.chapter-header {
  margin-bottom: 0.25rem;
}

.chapter-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.chapter-period {
  font-size: 0.65rem;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chapter-tagline {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin: 0 0 0.6rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chapter-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chapter-highlights li {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.chapter-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.chapter-highlights li:last-child {
  margin-bottom: 0;
}

.journey-connector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}

.connector-line {
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.connector-arrow {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-warm));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
}

@media (max-width: 600px) {
  .journey-chapters {
    flex-direction: column;
    gap: 0.5rem;
  }

  .journey-chapter {
    padding: 1.25rem;
  }

  .chapter-number {
    font-size: 4rem;
    top: -10px;
    right: 5px;
  }

  .journey-connector {
    justify-content: center;
    flex-direction: column;
    padding: 0.25rem 0;
  }

  .connector-line {
    width: 2px;
    height: 15px;
  }

  .connector-arrow {
    width: 24px;
    height: 24px;
  }

  .connector-arrow i {
    transform: rotate(90deg);
  }
}

/* ============================================
   EXPERIENCE - Expandable Cards
   ============================================ */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Journey Intro */
.journey-intro {
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
  line-height: 1.6;
}

/* Experience Timeline */
.experience-timeline {
  position: relative;
  padding-left: 2rem;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
  border-radius: 1px;
}

/* Timeline Marker (dot) */
.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 1.1rem;
  width: 12px;
  height: 12px;
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s ease;
}

.exp-card:hover .timeline-marker,
.exp-card.expanded .timeline-marker {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* Timeline Milestone Badge */
.timeline-milestone {
  position: relative;
  padding: 0.5rem 0;
  margin-left: -0.5rem;
}

.milestone-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(13, 115, 119, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(13, 115, 119, 0.25);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.milestone-badge:hover {
  background: rgba(13, 115, 119, 0.15);
  border-color: var(--color-primary);
  transform: scale(1.02);
}

.exp-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.exp-content {
  /* Wrapper for card content */
}

.exp-card:hover {
  border-color: var(--color-primary);
}

.exp-card.expanded {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-color: var(--color-primary);
}

.exp-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.exp-title-wrap {
  flex: 1;
  min-width: 0;
}

.exp-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.1rem;
}

.exp-company {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
}

.exp-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.exp-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.exp-toggle:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.exp-card.expanded .exp-toggle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: rotate(45deg);
}

.exp-story {
  display: none;
  overflow: hidden;
}

.exp-card.expanded .exp-story {
  display: block;
}

.exp-story-inner {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0;
  padding-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.exp-story-inner ul {
  padding-left: 1rem;
}

.exp-story-inner li {
  margin-bottom: 0.35rem;
  position: relative;
}

/* ============================================
   PUBLICATIONS
   ============================================ */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.publication-card {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-muted) 100%);
  border-radius: var(--radius);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.publication-card::before {
  content: "";
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: var(--color-accent);
  opacity: 0.15;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.publication-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.publication-title a { color: #fff; }
.publication-title a:hover { color: var(--color-accent); }

.publication-authors {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.2rem;
}

.author-orcid {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 2px;
  transition: all 0.15s ease;
}

.author-orcid:hover {
  color: #a6ce39;
  text-decoration-color: #a6ce39;
}

.author-orcid .orcid-icon {
  font-size: 0.85em;
  color: #a6ce39;
  margin-left: 0;
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.15s ease, opacity 0.15s ease, margin 0.15s ease;
}

.author-orcid:hover .orcid-icon {
  max-width: 1.5em;
  opacity: 1;
  margin-left: 0.25em;
}

.publication-venue {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 600;
}

.preprint-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
}

.preprint-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================
   PRESENTATIONS
   ============================================ */
.presentations-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.presentation-card {
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #3d2a1a 0%, #2a1e14 100%);
  border-radius: var(--radius);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
  border: 1px solid rgba(249, 115, 22, 0.12);
}

.presentation-card:hover {
  transform: translateX(4px);
  border-color: rgba(249, 115, 22, 0.25);
}

.presentation-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: var(--color-warm);
  opacity: 0.1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.presentation-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.presentation-authors {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.25rem 0;
}

.presentation-venue {
  font-size: 0.78rem;
  color: var(--color-warm);
  font-weight: 600;
  margin: 0;
}

/* Presentations See More */
#presentations .see-more-btn {
  background: #3d2a1a;
  border-color: #3d2a1a;
}

#presentations .see-more-btn:hover {
  background: var(--color-warm);
  border-color: var(--color-warm);
}

.presentations-hidden {
  display: none;
}

.presentations-hidden.expanded {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.see-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-dark);
  border: 1px solid var(--color-dark);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.see-more-btn:hover {
  background: var(--color-warm);
  border-color: var(--color-warm);
  color: #fff;
}

.see-more-btn .see-less-text {
  display: none;
}

.see-more-btn[aria-expanded="true"] .see-more-text {
  display: none;
}

.see-more-btn[aria-expanded="true"] .see-less-text {
  display: inline;
}

.see-more-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.see-more-btn[aria-expanded="true"] .see-more-icon {
  transform: rotate(180deg);
}

/* Expandable Publication Cards */
.publication-card[data-expandable] .publication-header {
  cursor: pointer;
}

.publication-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.publication-info {
  flex: 1;
}

.publication-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-top: 0.25rem;
  position: relative;
  z-index: 5;
}

.publication-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.publication-toggle i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.publication-card.expanded .publication-toggle i {
  transform: rotate(45deg);
}

.publication-details {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.publication-card.expanded .publication-details {
  display: block;
}

.publication-details ul {
  margin: 0;
  padding-left: 1rem;
}

.publication-details li {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin-bottom: 0.4rem;
}

/* Award (no link) */
.publication-card.award {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.publication-card.award .publication-title { color: var(--color-dark); }
.publication-card.award .publication-venue { color: var(--color-primary); }

/* Publication Progress Indicator */
.publication-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}


.publication-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.progress-stage {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.progress-dot {
  font-size: 0.6rem;
  line-height: 1;
}

.progress-stage.active .progress-dot {
  color: var(--color-primary);
}

.progress-stage.inactive .progress-dot {
  color: rgba(255, 255, 255, 0.3);
}

.progress-link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

a.progress-link:hover {
  transform: translateY(-1px);
}

a.progress-link:hover .progress-label {
  color: var(--color-accent);
}

.progress-link.disabled {
  cursor: default;
}

.progress-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.progress-stage.inactive .progress-label {
  color: rgba(255, 255, 255, 0.35);
}

.progress-venue {
  font-size: 0.68rem;
  color: var(--color-accent);
  font-weight: 500;
}

.progress-stage.inactive .progress-venue {
  color: rgba(255, 255, 255, 0.25);
}

.progress-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-line.complete {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

/* ============================================
   AWARDS SECTION
   ============================================ */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.award-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  transition: all 0.3s ease;
}

.award-card:hover {
  border-color: var(--color-primary);
}

.award-card[data-expandable] .award-header {
  cursor: pointer;
}

.award-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.award-info {
  flex: 1;
}

.award-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.25rem 0;
}

.award-org {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin: 0 0 0.15rem 0;
}

.award-year {
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0;
}

.award-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.award-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.award-toggle i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.award-card.expanded .award-toggle i {
  transform: rotate(45deg);
}

.award-details {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.award-card.expanded .award-details {
  display: block;
}

.award-details ul {
  margin: 0;
  padding-left: 1rem;
}

.award-details li {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin-bottom: 0.4rem;
}

/* Undergraduate Awards Card - Enhanced Design */
.undergrad-awards-card {
  margin-top: 0;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.undergrad-awards-card .undergrad-awards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
}

.undergrad-awards-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.undergrad-awards-icon {
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0.7;
}

.undergrad-awards-card .undergrad-awards-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.undergrad-expand-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.undergrad-expand-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.undergrad-expand-btn i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.undergrad-awards-card.expanded .undergrad-expand-btn i {
  transform: rotate(180deg);
}

.undergrad-awards-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.25rem 1rem;
}

.undergrad-preview-chip {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.08), rgba(13, 115, 119, 0.12));
  border: 1px solid rgba(13, 115, 119, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
}

.undergrad-preview-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
}

.preview-school-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
}

.undergrad-awards-card .undergrad-awards-content {
  display: none;
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--color-border);
}

.undergrad-awards-card.expanded .undergrad-awards-content {
  display: block;
}

.undergrad-awards-card.expanded .undergrad-awards-preview {
  display: none;
}

.undergrad-school-group {
  padding-top: 1rem;
}

.undergrad-school-group + .undergrad-school-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.undergrad-school-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.undergrad-school-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.undergrad-school-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.undergrad-school-awards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.undergrad-award-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.undergrad-award-row .undergrad-award-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  margin-right: 0.25rem;
}

.award-name-link {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.award-name-link:hover {
  color: var(--color-primary);
}

.award-name-link i {
  font-size: 0.6rem;
  opacity: 0.5;
  margin-left: 0.2rem;
}

.undergrad-award-semesters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.undergrad-semester-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.undergrad-semester-chip.linked {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.undergrad-semester-chip.linked:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(13, 115, 119, 0.05);
}

/* ============================================
   LEADERSHIP - Interactive Story Cards
   ============================================ */
.leadership-grid {
  display: grid;
  gap: 0.5rem;
}

.lead-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.lead-card:hover {
  border-color: var(--color-primary);
}

.lead-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.lead-info { flex: 1; }

/* Progression Badge */
.lead-progression-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-alt, #f5f5f5);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.lead-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.1rem;
}

.lead-org {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  display: block;
}

.lead-time {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: 0.15rem;
}

.lead-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.lead-toggle:hover {
  background: var(--color-primary);
  transform: scale(1.05);
}

.lead-card.expanded .lead-toggle {
  opacity: 0;
  pointer-events: none;
}

/* Story Content */
.lead-story {
  display: none;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a1a 100%);
  color: #fff;
  flex-direction: column;
  border-radius: var(--radius);
}

.lead-card.expanded .lead-story {
  display: flex;
}

.lead-card.expanded .lead-header {
  display: none;
}

.lead-story-content {
  padding: 1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lead-story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0;
  margin: -0.25rem 0 0.75rem 0;
  border-radius: 4px;
  transition: background 0.15s;
}

.lead-story-header:hover {
  background: rgba(255,255,255,0.05);
}

.lead-story-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.lead-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.lead-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.lead-story-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.lead-story-progression {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

button.story-role-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255,255,255,0.1);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: left;
}

.story-role-block:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.story-role-block.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.story-role-block.active:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: none;
}

.story-role-block .story-role-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.story-role-block.active .story-role-title {
  color: #fff;
}

.story-role-block .story-role-time {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
}

.story-role-block.active .story-role-time {
  color: rgba(255,255,255,0.85);
}

.story-role-arrow {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
}

/* Role content panels */
.lead-story-roles-content {
  position: relative;
}

.lead-story-roles-content .lead-story-body {
  display: none;
}

.lead-story-roles-content .lead-story-body.active {
  display: block;
  animation: storyFadeIn 0.2s ease;
}

@keyframes storyFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.lead-story-org {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}

.lead-story-body {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}

.lead-story-body ul {
  padding-left: 1rem;
  margin: 0;
}

.lead-story-body li {
  margin-bottom: 0.3rem;
}

.lead-story-body li::marker {
  color: var(--color-accent);
}

/* ============================================
   SERVICE
   ============================================ */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Committee Card - special layout for committee-based service */
.committee-card {
  background: linear-gradient(135deg, #fff 0%, #f8fafb 100%);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.25s ease;
}

.committee-card:hover {
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.1);
  border-color: var(--color-primary);
}

.committee-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.committee-card-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.committee-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.committee-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.committee-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.committee-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

.committee-org {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Committee count - prominent stat badge */
.committee-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a5f63 100%);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(13, 115, 119, 0.25);
}

/* Shine effect overlay */
.committee-count::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.committee-count:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.4);
}

.committee-count:hover::before {
  left: 100%;
}

.committee-count-number {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.committee-count-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-top: 0.1rem;
}

/* Chevron integrated into badge */
.committee-count-chevron {
  font-size: 0.55rem;
  opacity: 0.7;
  margin-top: 0.25rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.committee-count.expandable:hover .committee-count-chevron {
  opacity: 1;
}

.committee-card.expanded .committee-count-chevron {
  transform: rotate(180deg);
}

/* Committee chips */
.committee-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.committee-chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-dark);
  background: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  transition: all 0.15s ease;
}

.committee-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.committee-years {
  font-size: 0.65rem;
  color: var(--color-text-light);
  margin-left: 0.35rem;
  font-weight: 400;
}

/* Committee card - mobile compact */
@media (max-width: 600px) {
  .committee-card {
    padding: 1rem;
  }

  .committee-card-header {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .committee-icon-wrap {
    width: 32px;
    height: 32px;
  }

  .committee-card-left {
    gap: 0.6rem;
  }

  .committee-role {
    font-size: 0.95rem;
  }

  .committee-org {
    font-size: 0.75rem;
  }

  /* Chips hidden by default, inline when expanded */
  .committee-chips {
    display: none;
  }

  .committee-card.expanded .committee-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .committee-card.expanded .committee-chip {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .committee-card.expanded .committee-years {
    font-size: 0.6rem;
  }

  /* Compact details */
  .committee-card.expanded .committee-details {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .committee-details li {
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
    line-height: 1.35;
  }

  .committee-details ul {
    padding-left: 1rem;
  }
}

/* Committee details - hidden by default */
.committee-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.committee-card.expanded .committee-details {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.committee-details ul {
  margin: 0;
  padding-left: 1.2rem;
}

.committee-details li {
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.service-item {
  padding: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.service-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
}

.service-time {
  font-size: 0.78rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.service-org {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.service-details {
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.5;
}

.service-details ul {
  margin: 0;
  padding-left: 1.2rem;
}

.service-details li {
  margin-bottom: 0.25rem;
}

.service-details li::marker {
  color: var(--color-accent);
}

/* ============================================
   SKILLS - Unified Card Design
   ============================================ */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 700px) {
  .skills-categories {
    grid-template-columns: 1fr;
  }
}

/* Featured skill card - dark and prominent */
.skill-card.featured {
  grid-column: 1 / -1;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--color-dark) 0%, #0d1a22 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
}

.skill-card.featured:hover {
  border-color: rgba(50, 224, 196, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Non-featured skill cards - light and polished */
.skill-card:not(.featured) {
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #fff 0%, #f8fafb 100%);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.skill-card:not(.featured):hover {
  border-color: var(--color-primary);
  border-left-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 115, 119, 0.12);
}

.skill-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

/* Featured title */
.skill-card.featured .skill-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Non-featured title */
.skill-card:not(.featured) .skill-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Skill chips container */
.skill-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Featured chips - light on dark */
.skill-card.featured .skill-chip {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.skill-card.featured .skill-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent);
  color: #fff;
}

.skill-card.featured .skill-chip.has-posts:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.skill-card.featured .skill-chip.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-dark);
  font-weight: 600;
}

/* Non-featured chips - dark on light */
.skill-card:not(.featured) .skill-chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.skill-card:not(.featured) .skill-chip:hover {
  background: rgba(13, 115, 119, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.skill-card:not(.featured) .skill-chip.has-posts:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.skill-card:not(.featured) .skill-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

/* Highlighted skills - universal focal points */
.skill-card:not(.featured) .skill-chip.highlight {
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.15) 0%, rgba(50, 224, 196, 0.12) 100%);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(13, 115, 119, 0.15);
}

.skill-card:not(.featured) .skill-chip.highlight:hover {
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.25);
  transform: translateY(-1px);
}

.skill-card:not(.featured) .skill-chip.highlight::before {
  content: "★";
  font-size: 0.55rem;
  color: var(--color-accent);
  margin-right: 0.25rem;
}

.skill-card.featured .skill-chip.highlight {
  background: rgba(50, 224, 196, 0.25);
  border-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(50, 224, 196, 0.2);
}

.skill-card.featured .skill-chip.highlight:hover {
  box-shadow: 0 4px 12px rgba(50, 224, 196, 0.35);
  transform: translateY(-1px);
}

.skill-card.featured .skill-chip.highlight::before {
  content: "★";
  font-size: 0.55rem;
  color: var(--color-accent);
  margin-right: 0.25rem;
}

/* Skill source icons - tiny org badges */
.skill-sources {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  vertical-align: middle;
}

.skill-source-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 3px;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.skill-chip:hover .skill-source-icon {
  opacity: 1;
  transform: scale(1.3);
}

/* Featured card source icons - lighter */
.skill-card.featured .skill-source-icon {
  width: 18px;
  height: 18px;
  opacity: 1;
  background: rgba(255, 255, 255, 0.95);
  padding: 3px;
  border-radius: 5px;
}

.skill-card.featured .skill-chip:hover .skill-source-icon {
  opacity: 1;
  filter: brightness(1);
}

/* Post count badge - only when expanded */
.skill-card.expanded .skill-chip.has-posts::after {
  content: attr(data-post-count);
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--color-dark);
  background: var(--color-accent);
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card:not(.featured).expanded .skill-chip.has-posts::after {
  color: #fff;
  background: var(--color-primary);
}

/* Expand button - featured (light) */
.skill-card.featured .skill-expand-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 0.3rem 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skill-card.featured .skill-expand-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--color-accent);
}

/* Expand button - non-featured (dark) */
.skill-card:not(.featured) .skill-expand-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(13, 115, 119, 0.08);
  border: 1px solid rgba(13, 115, 119, 0.2);
  border-radius: 16px;
  padding: 0.3rem 0.65rem;
  color: var(--color-primary);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skill-card:not(.featured) .skill-expand-btn:hover {
  background: rgba(13, 115, 119, 0.12);
  border-color: var(--color-primary);
}

.skill-expand-btn i {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.skill-card.expanded .skill-expand-btn i {
  transform: rotate(180deg);
}

.skill-post-count {
  font-weight: 600;
}

/* Skill tooltip for descriptions - featured */
.skill-card.featured .skill-tooltip {
  display: none;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
}

.skill-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.skill-tooltip-sources {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tooltip-source-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0.9;
}

.skill-card.featured .tooltip-source-icon {
  background: rgba(255, 255, 255, 0.95);
  padding: 3px;
  border-radius: 5px;
}

.skill-card.featured .skill-tooltip-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-card.featured .skill-tooltip-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.3rem 0 0 0;
  line-height: 1.45;
}

/* Skill tooltip for descriptions - non-featured */
.skill-card:not(.featured) .skill-tooltip {
  display: none;
  margin-top: 0.85rem;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.06) 0%, rgba(13, 115, 119, 0.02) 100%);
  border-radius: 6px;
  border-left: 3px solid var(--color-primary);
}

.skill-card:not(.featured) .skill-tooltip-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-card:not(.featured) .skill-tooltip-desc {
  font-size: 0.78rem;
  color: var(--color-text);
  margin: 0.25rem 0 0 0;
  line-height: 1.45;
}

.skill-card .skill-tooltip.visible {
  display: block !important;
  animation: tooltipFade 0.2s ease;
}

@keyframes tooltipFade {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Posts panel - hidden by default */
.skill-posts-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.skill-card.expanded .skill-posts-panel {
  max-height: 400px;
  opacity: 1;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-filter-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-filter-label:empty {
  display: none;
}

.skill-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-post-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  transition: all 0.2s ease;
}

.skill-post-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent);
}

.skill-post-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.skill-post-title a {
  color: #fff;
  text-decoration: none;
}

.skill-post-title a:hover {
  color: var(--color-accent);
}

.skill-post-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.skill-post-tag {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(50, 224, 196, 0.15);
  padding: 0.12rem 0.35rem;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.skill-post-tag.highlighted {
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 600;
}

/* Post filtering states */
.skill-post-card.hidden {
  display: none;
}

/* Skills Filter Mode - Universal Design */
.skills-filter-mode {
  display: block;
}

.skills-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Mobile: compact wrapped filter buttons - 2 rows */
@media (max-width: 600px) {
  .skills-filter-buttons {
    gap: 0.4rem;
  }

  .skill-filter-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.68rem;
  }

  .skill-filter-btn i {
    font-size: 0.6rem;
  }
}

.skill-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.skill-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.skill-filter-btn.active {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a3a3c 100%);
  border-color: var(--color-dark);
  color: #fff;
}

.skill-filter-btn.active i {
  color: var(--color-accent);
}

.skill-filter-btn i {
  font-size: 0.7rem;
}

.skills-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: flex-start;
}

.greatest-hit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a3a3c 100%);
  color: #fff;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(13, 115, 119, 0.2);
  transition: all 0.25s ease;
  animation: pillFadeIn 0.3s ease;
}

@keyframes pillFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.greatest-hit.hidden {
  display: none;
}

.greatest-hit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.3);
}

.greatest-hit i {
  font-size: 0.9rem;
  color: var(--color-accent);
}

.skills-filter-count {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Instrument text in analytical pills */
.pill-instrument {
  font-size: 0.75rem;
  opacity: 0.6;
  font-weight: 400;
  margin-left: 0.15rem;
}

/* Non-highlighted pills - slightly muted */
.greatest-hit {
  font-weight: 500;
}

.greatest-hit i {
  opacity: 0.65;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Highlighted pills - subtle emphasis through brightness */
.greatest-hit.skill-highlight {
  font-weight: 600;
}

.greatest-hit.skill-highlight i {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(50, 224, 196, 0.5));
}

.greatest-hit.skill-highlight::after {
  content: "★";
  font-size: 0.7rem;
  color: var(--color-accent);
  margin-left: 0.35rem;
  filter: drop-shadow(0 0 3px rgba(50, 224, 196, 0.6));
}

/* Hide old card-based categories - filter mode is now universal */
.skills-categories {
  display: none;
}

.skills-see-more {
  display: none;
}

/* Skill Detail Card - Inline below pills */
.skill-pill-tooltip {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-top: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.skill-pill-tooltip.visible {
  max-height: 400px;
  opacity: 1;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.skill-pill-tooltip-content {
  flex: 1;
}

.skill-pill-tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.skill-pill-tooltip-name {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.skill-pill-tooltip-sources {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
}

.skill-pill-tooltip-sources img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
}

.skill-pill-tooltip-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.45;
}

.skill-pill-tooltip-close {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.skill-pill-tooltip-close:hover {
  background: var(--color-border);
  color: var(--color-dark);
}

/* Related posts in skill detail card */
.skill-related-posts {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.skill-related-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.skill-related-label i {
  margin-right: 0.3rem;
  color: var(--color-primary);
}

.skill-related-post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-top: 0.35rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.skill-related-post:hover {
  border-color: var(--color-primary);
  background: rgba(13, 115, 119, 0.05);
}

.skill-related-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-dark);
}

.skill-related-post i {
  font-size: 0.65rem;
  color: var(--color-text-light);
  transition: transform 0.15s ease;
}

.skill-related-post:hover i {
  transform: translateX(2px);
  color: var(--color-primary);
}

/* Skills filter pills container - position relative for tooltip */
.skills-filter-pills {
  position: relative;
}

/* Clickable pills with descriptions */
.greatest-hit[data-desc] {
  cursor: pointer;
}

.greatest-hit.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.4);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .skills-filter-buttons {
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .skill-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .skills-filter-pills {
    gap: 0.75rem;
  }

  .greatest-hit {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  /* Compact pills on mobile */
  .greatest-hit {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .greatest-hit i {
    font-size: 0.8rem;
  }

  .skills-filter-pills {
    gap: 0.5rem;
  }

  /* Detail card mobile adjustments */
  .skill-pill-tooltip.visible {
    padding: 0.85rem 1rem;
  }

  .skill-pill-tooltip-name {
    font-size: 0.9rem;
  }

  .skill-pill-tooltip-desc {
    font-size: 0.8rem;
  }
}

.skill-post-card.highlighted {
  border-color: var(--color-accent);
  background: rgba(50, 224, 196, 0.08);
}

/* Post cards in light (non-featured) skill cards */
.skill-card:not(.featured) .skill-post-card {
  background: rgba(13, 115, 119, 0.06);
  border-color: var(--color-border);
}

.skill-card:not(.featured) .skill-post-card:hover {
  background: rgba(13, 115, 119, 0.1);
  border-color: var(--color-primary);
}

.skill-card:not(.featured) .skill-post-title a {
  color: var(--color-dark);
}

.skill-card:not(.featured) .skill-post-title a:hover {
  color: var(--color-primary);
}

.skill-card:not(.featured) .skill-post-card.highlighted {
  background: rgba(13, 115, 119, 0.12);
  border-color: var(--color-primary);
}

/* ============================================
   ANALYTICAL COMPETENCIES - Cluster Layout
   ============================================ */

.competency-section {
  grid-column: 1 / -1;
}

.competency-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.competency-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(13, 115, 119, 0.08);
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(13, 115, 119, 0.15);
}

.meta-skill-badge i {
  font-size: 0.65rem;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .competency-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.competency-cluster {
  background: linear-gradient(135deg, #fff 0%, #f8fafb 100%);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 1rem;
  transition: all 0.25s ease;
  position: relative;
}

.competency-cluster:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 115, 119, 0.1);
}

.cluster-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.cluster-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 6px;
  color: #fff;
  font-size: 0.75rem;
}

.cluster-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.cluster-summary {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.cluster-techniques {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.technique-chip {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-dark);
  background: #f0f4f5;
  padding: 0.3rem 0.6rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.technique-chip:hover {
  background: rgba(13, 115, 119, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.technique-chip.highlight {
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.15) 0%, rgba(50, 224, 196, 0.12) 100%);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  box-shadow: 0 2px 8px rgba(13, 115, 119, 0.15);
}

.technique-chip.highlight:hover {
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.25);
  transform: translateY(-1px);
}

.technique-chip.highlight::before {
  content: "★";
  font-size: 0.55rem;
  color: var(--color-accent);
  margin-right: 0.15rem;
}

.technique-instrument {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.cluster-sources {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.cluster-source-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.competency-cluster:hover .cluster-source-icon {
  opacity: 1;
}

/* ============================================
   EDUCATION - Connecticut Journey Timeline
   ============================================ */

/* Section header with tagline */
.section-header-with-tagline {
  margin-bottom: 1.25rem;
}

.section-header-with-tagline .section-title {
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ct-flag-inline {
  width: 28px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 40, 104, 0.2);
  vertical-align: middle;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.ct-flag-inline:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(0, 40, 104, 0.35);
}

.section-tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-light);
  margin: 0;
}

.tagline-separator {
  color: var(--color-border);
  font-style: normal;
}

/* Timeline layout */
.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.education-item {
  display: flex;
  gap: 1rem;
  position: relative;
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #002868;
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px #002868;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-line {
  width: 2px;
  flex-grow: 1;
  background: linear-gradient(180deg, #002868 0%, #C5A000 100%);
  margin-top: -1px;
  min-height: 40px;
}

.education-content {
  flex: 1;
  padding: 0 0 1.5rem 0.5rem;
  padding-bottom: 1.25rem;
}

.education-item:last-child .education-content {
  padding-bottom: 0;
}

/* Progress indicator for journey - CT Blue to Gold */
.education-item[data-step="1"] .timeline-dot {
  background: #002868;
  box-shadow: 0 0 0 2px #002868;
}

.education-item[data-step="2"] .timeline-dot {
  background: #1a4a8a;
  box-shadow: 0 0 0 2px #1a4a8a;
}

.education-item[data-step="3"] .timeline-dot {
  background: #C5A000;
  box-shadow: 0 0 0 2px #C5A000, 0 0 10px rgba(197, 160, 0, 0.5);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.education-degree {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
}

.education-time {
  font-size: 0.72rem;
  color: var(--color-text-light);
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 3px;
}

.education-school {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.education-school::before {
  content: "";
  width: 6px;
  height: 7px;
  background: var(--color-accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}

/* Education - Mobile */
@media (max-width: 600px) {
  .section-tagline {
    font-size: 0.8rem;
  }

  .ct-flag-inline {
    width: 24px;
  }

  /* Simplified timeline on mobile - hide dots, use left border */
  .education-timeline {
    border-left: 3px solid;
    border-image: linear-gradient(180deg, #002868 0%, #C5A000 100%) 1;
    padding-left: 1rem;
    margin-left: 0.5rem;
  }

  .timeline-node {
    display: none;
  }

  .education-item {
    gap: 0;
  }

  .education-content {
    padding-left: 0;
    padding-bottom: 1.25rem;
  }

  .education-header {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
  }

  .education-degree {
    font-size: 0.85rem;
  }

  .education-time {
    font-size: 0.68rem;
  }
}

/* ============================================
   AWARDS
   ============================================ */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.award-item {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.award-item:hover {
  border-color: var(--color-primary-light);
}

.award-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.award-info {
  flex: 1;
}

.award-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.15rem;
}

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

.award-name a:hover {
  color: var(--color-primary);
}

.award-org {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.award-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.award-toggle i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.award-item.expanded .award-toggle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.award-item.expanded .award-toggle i {
  transform: rotate(45deg);
}

.award-details {
  display: none;
  padding-top: 0.65rem;
  margin-top: 0.65rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text);
}

.award-item.expanded .award-details {
  display: block;
}

.award-details ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.award-details li {
  margin-bottom: 0.25rem;
}

.award-details li::before {
  content: "·";
  margin-right: 0.4rem;
  color: var(--color-accent);
}

.award-details a {
  color: var(--color-primary);
  text-decoration: none;
}

.award-details a:hover {
  text-decoration: underline;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.certification-item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.certification-name {
  font-weight: 500;
  color: var(--color-dark);
}

.certification-org {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.certification-org::before {
  content: "·";
  margin-right: 0.4rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 1.25rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer p {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BLOG
   ============================================ */
.blog-section {
  padding-top: 120px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0 0 0.5rem 0;
}

.blog-intro {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.post-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.post-meta time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.post-category {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: rgba(13, 115, 119, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.post-title a {
  color: var(--color-dark);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--color-primary);
}

.post-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
}

.read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.read-more:hover {
  color: var(--color-accent);
}

.read-more i {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.read-more:hover i {
  transform: translateX(3px);
}

.no-posts {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Post Page */
.post-page {
  padding-top: 80px;
}

.post-header {
  padding: 2rem 0;
  background: var(--color-bg-alt);
}

.back-link {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.back-link:hover {
  color: var(--color-primary);
}

.post-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.post-page-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-page-meta time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.post-page-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: rgba(13, 115, 119, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.post-content {
  padding: 2rem 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 1.75rem 0 0.75rem 0;
}

.post-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 1.5rem 0 0.5rem 0;
}

.post-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.post-content ul, .post-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.post-content li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.post-content code {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.85em;
  background: var(--color-bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.post-content pre {
  background: var(--color-dark);
  color: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.post-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--color-text-light);
  font-style: italic;
}

.post-content a {
  color: var(--color-warm);
  font-weight: 500;
}

.post-content a:hover {
  color: var(--color-warm-light);
}

.post-content strong {
  font-weight: 600;
  color: var(--color-dark);
}

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

.post-content th,
.post-content td {
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.post-content th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-dark);
}

.post-content tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.post-content details {
  margin: 1rem 0;
  border-radius: 6px;
  overflow: hidden;
}

.post-content details summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  list-style: none;
}

.post-content details summary::-webkit-details-marker {
  display: none;
}

.post-content details summary::before {
  content: "▶ ";
  font-size: 0.7rem;
  margin-right: 0.5rem;
}

.post-content details[open] summary::before {
  content: "▼ ";
}

.post-content details[open] summary {
  border-radius: 6px 6px 0 0;
}

.post-content details pre {
  margin: 0;
  border-radius: 0 0 6px 6px;
}

.post-content details code {
  border-radius: 0 0 6px 6px;
}

/* ========================================
   Interactive Code Explainer
   ======================================== */

/* Toggle Control */
.code-explainer {
  margin: 1.5rem 0;
}

.explainer-toggle {
  display: inline-flex;
  background: var(--color-dark);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 0;
  position: relative;
  gap: 4px;
}

.toggle-btn {
  position: relative;
  z-index: 2;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toggle-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.toggle-btn.active {
  color: #ffffff;
  background: var(--color-warm);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.toggle-btn i {
  font-size: 0.75rem;
}

/* Content Views */
.explainer-content {
  position: relative;
}

.explainer-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.explainer-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Plain English View */
.plain-english {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-muted) 100%);
  border-radius: 0 0 8px 8px;
  padding: 1.5rem;
  font-family: var(--font-primary);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0;
}

.plain-english ol {
  margin: 0;
  padding-left: 0;
  counter-reset: step;
  list-style: none;
}

.plain-english > ol > li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.plain-english > ol > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-warm);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plain-english .action {
  color: var(--color-warm);
  font-weight: 600;
}

.plain-english .variable {
  font-family: 'SFMono-Regular', Consolas, monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
}

.plain-english ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.25rem;
  list-style: none;
}

.plain-english ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9em;
}

.plain-english ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.plain-english .loop-indicator {
  display: inline-block;
  background: rgba(14, 165, 233, 0.2);
  color: var(--color-accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Concept Cards */
.concept-card {
  background: #ffffff;
  border-left: 4px solid var(--color-warm);
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.concept-header {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  font-family: var(--font-primary);
  transition: background 0.2s ease;
}

.concept-header:hover {
  background: rgba(249, 115, 22, 0.05);
}

.concept-header .concept-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--color-warm) 0%, #fb923c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.concept-header .concept-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
}

.concept-header .concept-chevron {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.concept-card.expanded .concept-chevron {
  transform: rotate(180deg);
}

.concept-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 1.25rem;
}

.concept-card.expanded .concept-body {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
}

.concept-body p {
  margin: 0 0 0.75rem 0;
  color: var(--color-text);
  line-height: 1.7;
  font-size: 0.9rem;
}

.concept-body p:last-child {
  margin-bottom: 0;
}

.concept-body .analogy {
  background: rgba(14, 165, 233, 0.08);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.concept-body .analogy-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

/* Philosophy callout box */
.post-content .philosophy-callout {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-muted) 100%);
  border-left: 4px solid var(--color-warm);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.95);
}

.post-content .philosophy-callout .callout-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-warm);
  margin-bottom: 0.5rem;
}

.post-content .philosophy-callout .callout-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.post-content .philosophy-callout p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.6;
}

/* Hero Stats Panel */
.hero-stats {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-muted) 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.hero-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.hero-stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stat-icon {
  font-size: 1.5rem;
  color: var(--color-warm);
  margin-bottom: 0.5rem;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.hero-stat-value .arrow {
  color: var(--color-warm);
  font-size: 1.25rem;
  margin: 0 0.25rem;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Animated counter */
.hero-stat-value[data-animate] {
  opacity: 0;
  transform: translateY(10px);
}

.hero-stat-value.animated {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

/* Before/After Toggle */
.before-after-toggle {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-muted) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.ba-toggle-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ba-toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.ba-toggle-label.active {
  color: var(--color-warm);
}

.ba-toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  cursor: pointer;
  border: none;
  padding: 0;
}

.ba-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--color-warm);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.ba-toggle-switch.after::after {
  transform: translateX(30px);
}

.ba-content {
  position: relative;
  min-height: 200px;
}

.ba-view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.ba-view.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ba-mockup {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.7rem;
  overflow-x: auto;
}

.ba-mockup-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ba-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ba-mockup-dot.red { background: #ff5f57; }
.ba-mockup-dot.yellow { background: #febc2e; }
.ba-mockup-dot.green { background: #28c840; }

.ba-spreadsheet {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.ba-row {
  display: grid;
  gap: 1px;
}

.ba-row.header {
  font-weight: 600;
}

.ba-cell {
  background: #2d2d2d;
  padding: 0.35rem 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ba-cell.header-cell {
  background: #3d3d3d;
  color: var(--color-warm);
}

.ba-cell.highlight {
  background: rgba(249, 115, 22, 0.2);
  color: var(--color-warm);
}

.ba-cell.flagged {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.ba-chaos-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}

.ba-chaos-indicator i {
  color: #ef4444;
}

.ba-chaos-indicator span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.ba-clean-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 6px;
  border-left: 3px solid #22c55e;
}

.ba-clean-indicator i {
  color: #22c55e;
}

.ba-clean-indicator span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

/* Chaotic spreadsheet view */
.ba-spreadsheet.chaotic {
  position: relative;
}

.ba-spreadsheet.chaotic .ba-cell {
  font-size: 0.55rem;
  padding: 0.25rem 0.35rem;
  max-width: 80px;
}

.ba-spreadsheet.chaotic .ba-cell.header-cell {
  font-size: 0.5rem;
}

.ba-spreadsheet.chaotic .ba-cell.dim {
  color: rgba(255, 255, 255, 0.4);
}

.ba-overflow-fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to right, transparent, #1e1e1e);
  pointer-events: none;
}

.ba-mockup.chaotic {
  position: relative;
  overflow: hidden;
}

.ba-more-indicator {
  position: absolute;
  top: calc(50% + 12px);
  right: 12px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95) 0%, rgba(234, 88, 12, 0.95) 100%);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ba-more-indicator::after {
  content: '→';
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Mini pipeline spreadsheet */
.pipeline-preview {
  margin-top: 1rem;
  background: #1e1e1e;
  border-radius: 6px;
  padding: 0.75rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.6rem;
  overflow: hidden;
  position: relative;
}

.pipeline-spreadsheet {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.pipeline-spreadsheet .p-row {
  display: contents;
}

.pipeline-spreadsheet .p-cell {
  background: #2d2d2d;
  padding: 0.2rem 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-spreadsheet .p-cell.header {
  background: #3d3d3d;
  color: var(--color-warm);
  font-weight: 600;
}

.pipeline-spreadsheet .p-cell.dim {
  color: rgba(255, 255, 255, 0.3);
}

.pipeline-spreadsheet .p-cell.highlight {
  background: rgba(249, 115, 22, 0.25);
  color: var(--color-warm);
}

.pipeline-spreadsheet .p-cell.flagged {
  background: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.pipeline-spreadsheet .p-cell.deleted {
  background: rgba(239, 68, 68, 0.15);
  color: rgba(255, 255, 255, 0.25);
  text-decoration: line-through;
}

.pipeline-spreadsheet .p-cell.new {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.pipeline-fade {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, #1e1e1e);
  pointer-events: none;
}

.pipeline-preview-label {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Stakes callout */
.stakes-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.stakes-icon {
  font-size: 1.5rem;
  color: #ef4444;
  flex-shrink: 0;
}

.stakes-content {
  flex: 1;
}

.stakes-title {
  font-weight: 600;
  color: #fca5a5;
  margin-bottom: 0.25rem;
}

.stakes-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Context badge */
.context-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--color-primary);
  margin: 0.5rem 0;
}

.context-badge i {
  font-size: 0.9rem;
}

/* Comparison Card (Python vs VBA style) */
.comparison-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.comparison-side {
  padding: 1.5rem;
}

.comparison-side.reject {
  background: linear-gradient(135deg, #1e1e1e 0%, #2a1a1a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-side.accept {
  background: linear-gradient(135deg, #1e1e1e 0%, #1a2a1a 100%);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.comparison-side.reject .comparison-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.comparison-side.accept .comparison-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.comparison-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.comparison-side.reject .comparison-title {
  color: #fca5a5;
}

.comparison-side.accept .comparison-title {
  color: #86efac;
}

.comparison-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.4;
}

.comparison-list li i {
  margin-top: 0.15rem;
  font-size: 0.75rem;
}

.comparison-side.reject .comparison-list li i {
  color: #ef4444;
}

.comparison-side.accept .comparison-list li i {
  color: #22c55e;
}

@media (max-width: 640px) {
  .comparison-card {
    grid-template-columns: 1fr;
  }
}

/* Result Stats Cards */
.result-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 640px) {
  .result-stats {
    grid-template-columns: 1fr;
  }
}

.result-stat-card {
  background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.result-stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(249, 115, 22, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-warm);
  flex-shrink: 0;
}

.result-stat-content {
  flex: 1;
}

.result-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.result-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.15rem;
}

/* Lesson Cards */
.lesson-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 640px) {
  .lesson-cards {
    grid-template-columns: 1fr;
  }
}

.lesson-card {
  background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
  border-radius: 10px;
  padding: 1.25rem;
  border-left: 3px solid var(--color-warm);
}

.lesson-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.lesson-card-icon {
  width: 32px;
  height: 32px;
  background: rgba(249, 115, 22, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-warm);
  flex-shrink: 0;
}

.lesson-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff !important;
}

.post-content .lesson-card-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.5;
  margin: 0;
}

/* Animated Workflow Pipeline */
.workflow-pipeline {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-muted) 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  overflow: hidden;
}

.workflow-pipeline-title {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-align: center;
  opacity: 0.7;
}

.pipeline-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 80px;
  max-width: 120px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pipeline-step:hover {
  transform: translateY(-4px);
}

.pipeline-step:hover .step-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

.step-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
}

.pipeline-step.active .step-icon {
  background: var(--color-warm);
  border-color: var(--color-warm);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

.step-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
}

.pipeline-step.active .step-label {
  color: var(--color-warm);
  font-weight: 600;
}

.pipeline-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
}

.pipeline-arrow.animated::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-warm);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  animation: flowPulse 2s ease-in-out infinite;
}

@keyframes flowPulse {
  0%, 100% { transform: translateY(-50%) scaleX(0); opacity: 0; }
  50% { transform: translateY(-50%) scaleX(1); opacity: 1; }
}

/* Data particles animation */
.pipeline-step .step-icon::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-warm);
  border-radius: 50%;
  opacity: 0;
}

.workflow-pipeline.animating .pipeline-step:nth-child(1) .step-icon::before {
  animation: dataPulse 3s ease-in-out infinite 0s;
}
.workflow-pipeline.animating .pipeline-step:nth-child(3) .step-icon::before {
  animation: dataPulse 3s ease-in-out infinite 0.5s;
}
.workflow-pipeline.animating .pipeline-step:nth-child(5) .step-icon::before {
  animation: dataPulse 3s ease-in-out infinite 1s;
}
.workflow-pipeline.animating .pipeline-step:nth-child(7) .step-icon::before {
  animation: dataPulse 3s ease-in-out infinite 1.5s;
}
.workflow-pipeline.animating .pipeline-step:nth-child(9) .step-icon::before {
  animation: dataPulse 3s ease-in-out infinite 2s;
}
.workflow-pipeline.animating .pipeline-step:nth-child(11) .step-icon::before {
  animation: dataPulse 3s ease-in-out infinite 2.5s;
}

@keyframes dataPulse {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Step details panel */
.step-details {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
  min-height: 80px;
  border-left: 3px solid var(--color-warm);
}

.step-details-title {
  color: var(--color-warm);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.step-details-content {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.6;
}

.step-details .step-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.step-stat {
  display: flex;
  flex-direction: column;
}

.step-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-warm);
}

.step-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pipeline timing indicator */
.pipeline-timing {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile workflow pipeline - 3x2 grid */
@media (max-width: 600px) {
  .workflow-pipeline {
    padding: 1.25rem 1rem;
  }

  .workflow-pipeline-title {
    font-size: 0.65rem;
    margin-bottom: 1rem;
  }

  .pipeline-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    justify-items: center;
  }

  .pipeline-arrow {
    display: none;
  }

  .pipeline-step {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }

  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .step-label {
    font-size: 0.6rem;
  }

  .step-details {
    margin-top: 1rem;
    padding: 1rem;
    min-height: unset;
  }

  .step-details-title {
    font-size: 0.8rem;
  }

  .step-details-content {
    font-size: 0.75rem;
  }

  .step-details .step-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .step-stat-value {
    font-size: 1rem;
  }

  .step-stat-label {
    font-size: 0.6rem;
  }

  .pipeline-timing {
    margin-top: 1rem;
    padding-top: 0.75rem;
    font-size: 0.7rem;
  }
}

.timing-badge {
  background: rgba(249, 115, 22, 0.2);
  color: var(--color-warm);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .pipeline-container {
    flex-direction: column;
    gap: 0.25rem;
  }

  .pipeline-step {
    flex-direction: row;
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
  }

  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step-label {
    text-align: left;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    margin: 0.25rem 0;
  }
}

/* Floating Section Navigator */
.section-nav {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  font-family: var(--font-primary);
}

.section-nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-muted) 100%);
  color: #ffffff;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  max-width: 200px;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-nav-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.section-nav-toggle .current-section {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.section-nav-toggle .nav-icon {
  color: var(--color-warm);
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.section-nav.expanded .section-nav-toggle .nav-icon {
  transform: rotate(180deg);
}

.section-nav-menu {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-muted) 100%);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.section-nav.expanded .section-nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.section-nav-menu::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: var(--color-dark-muted);
  transform: rotate(45deg);
}

.section-nav-item {
  display: block;
  padding: 0.6rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.section-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

.section-nav-item.active {
  color: var(--color-warm);
  background: rgba(249, 115, 22, 0.1);
}

.section-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--color-warm);
  border-radius: 2px;
}

.section-nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1rem 0.25rem;
  display: block;
}

.section-nav-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  margin: 0.5rem 1rem;
  overflow: hidden;
}

.section-nav-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-warm));
  border-radius: 1px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Mobile section nav */
@media (max-width: 600px) {
  .section-nav {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .section-nav-toggle {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    border-radius: 1.5rem;
    max-width: none;
  }

  .section-nav-toggle .current-section {
    max-width: 180px;
  }

  .section-nav-menu {
    right: 0;
    left: 0;
    min-width: unset;
    max-width: none;
  }

  .section-nav-menu::after {
    right: 50%;
    transform: translateX(50%) rotate(45deg);
  }

  .section-nav-item {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section-nav {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .section-nav-toggle {
    width: 100%;
    justify-content: center;
    max-width: none;
  }

  .section-nav-toggle .current-section {
    max-width: none;
  }

  .section-nav-menu {
    right: 0;
    left: 0;
    min-width: auto;
    max-width: none;
  }

  .section-nav-menu::after {
    right: 50%;
    transform: translateX(50%) rotate(45deg);
  }
}

/* Hide when at very top of page */
.section-nav.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.post-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.post-nav-link {
  text-decoration: none;
  max-width: 45%;
}

.post-nav-link.next {
  margin-left: auto;
  text-align: right;
}

.post-nav-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-nav-link.next .post-nav-label {
  justify-content: flex-end;
}

.post-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  display: block;
  margin-top: 0.25rem;
}

.post-nav-link:hover .post-nav-title {
  color: var(--color-primary);
}

/* ============================================
   BLOG CALLOUT
   ============================================ */
.blog-callout-section {
  padding: 2rem 0;
}

.blog-callout-card {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-muted) 100%);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-warm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-callout-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.callout-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-warm);
  margin-bottom: 0.35rem;
}

.callout-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.callout-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.callout-title a:hover {
  color: var(--color-accent);
}

.callout-excerpt {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

.callout-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.callout-meta time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.callout-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.callout-link:hover {
  color: var(--color-accent);
}

.callout-link::after {
  content: ' \2192';
  transition: transform 0.2s ease;
  display: inline-block;
}

.callout-link:hover::after {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .blog-callout-card {
    padding: 0.85rem 1rem;
  }

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

/* ============================================
   FOOTER CTA
   ============================================ */
.footer-cta {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a1a 100%);
  text-align: center;
}

.footer-content {
  max-width: 500px;
  margin: 0 auto;
}

.footer-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem 0;
}

.footer-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.footer-link i {
  font-size: 0.9rem;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 600px) {
  body { font-size: 14px; }

  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    gap: 0.65rem;
  }
  .nav-toggle { display: block; }

  .hero { padding: 65px 0 1.25rem; }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }

  .hero-image { width: 90px; height: 90px; }
  .hero-name { font-size: 1.5rem; }
  .hero-links { justify-content: center; }

  .section { padding: 1.15rem 0; }

  .exp-header { flex-wrap: wrap; }
  .exp-time { width: 100%; margin-top: 0.25rem; }

  .skill-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .skill-category-title { min-width: auto; }

  .education-item {
    flex-direction: column;
    gap: 0.1rem;
  }
  .education-title-group {
    flex-direction: column;
    gap: 0;
  }

  .certification-item {
    flex-direction: column;
    gap: 0.1rem;
  }
  .certification-org::before { display: none; }
}

/* Edge Detection Toggle */
.edge-toggle {
  background: var(--color-alt);
  border: 2px solid var(--color-alt);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.edge-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.edge-toggle-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
}

.edge-toggle-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edge-toggle-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}

.edge-toggle-label.active {
  color: var(--color-dark);
  font-weight: 600;
}

.edge-toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--color-dark);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.edge-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.edge-toggle-switch.edges {
  background: var(--color-warm);
}

.edge-toggle-switch.edges::after {
  transform: translateX(20px);
}

.edge-toggle-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

.edge-toggle-panel {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--color-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edge-toggle-panel.highlight {
  border-color: var(--color-warm);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.edge-toggle-panel img {
  width: 100%;
  display: block;
  margin: 0;
  border-radius: 0;
}

.edge-toggle-panel .edge-view {
  display: none;
}

.edge-toggle-panel.show-edges .original-view {
  display: none;
}

.edge-toggle-panel.show-edges .edge-view {
  display: block;
}

.edge-toggle-panel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  text-align: center;
  padding: 1.5rem 0.5rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
}

.edge-toggle-caption {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Find It Interactive */
.find-it-challenge {
  border: 2px solid var(--color-alt);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-alt);
}

.find-it-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.find-it-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
}

.find-it-subtitle {
  font-size: 0.75rem;
  color: var(--color-warm);
  font-weight: 500;
}

.find-it-images {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.find-it-overview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
  border: 2px solid var(--color-dark);
}

.find-it-overview img {
  width: 100%;
  display: block;
  margin: 0;
  border-radius: 0;
}

.find-it-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.find-it-challenge.revealed .find-it-hint {
  opacity: 0;
}

.find-it-marker {
  position: absolute;
  border: 3px solid var(--color-warm);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 115, 22, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.find-it-challenge.revealed .find-it-marker {
  opacity: 1;
}

.find-it-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 200px;
  flex-shrink: 0;
}

.find-it-detail {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--color-warm);
}

.find-it-detail img {
  width: 100%;
  display: block;
  margin: 0;
  border-radius: 0;
}

.find-it-detail-label {
  background: var(--color-warm);
  color: #fff;
  text-align: center;
  padding: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.find-it-result {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(249, 115, 22, 0.15);
  border-radius: 6px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.find-it-challenge.revealed .find-it-result {
  opacity: 1;
}

.find-it-result-text {
  color: var(--color-dark);
  font-size: 0.85rem;
  margin: 0;
}

.find-it-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.find-it-btn:hover {
  background: var(--color-warm);
}

.find-it-challenge.revealed .find-it-btn {
  display: none;
}

/* Guess markers */
.find-it-guess {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  animation: guessPop 0.2s ease-out;
}

@keyframes guessPop {
  0% { transform: translate(-50%, -50%) scale(0); }
  50% { transform: translate(-50%, -50%) scale(1.3); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.find-it-guess.cold {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.find-it-guess.warm {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.find-it-guess.close {
  background: #eab308;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.6);
}

.find-it-guess.correct {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  width: 14px;
  height: 14px;
}

@media (max-width: 600px) {
  .find-it-images {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ORGANIZATION ICONS - Bold & Colorful (No Pills)
   ============================================ */

/* Base container - no background, just positioning */
.org-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.org-icon {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.2s ease;
}

/* Square icons (GEU, SPE, ACS, CCSU) - BIG */
.org-icon.square {
  height: 40px;
  width: 40px;
}

/* Wide/horizontal logos (ACS Rubber, AltaSci, Tunxis) */
.org-icon.wide {
  height: 30px;
  max-width: 160px;
}

/* Taller logos (UConn IMS) */
.org-icon.tall {
  height: 38px;
  max-width: 115px;
}

/* Ultra-wide wordmarks (UConn) */
.org-icon.ultrawide {
  height: 26px;
  max-width: 130px;
}

/* Dark background ONLY for white logos (NERPG) */
.org-icon-wrap.dark-bg {
  background: linear-gradient(135deg, #1a2d4a 0%, #0f1a2a 100%);
  padding: 8px 14px;
  border-radius: 6px;
}

.org-icon-wrap.dark-bg .org-icon {
  height: 22px;
  max-width: 130px;
}

/* Light background for logos with white bg on dark sections (UConn IMS) */
.org-icon-wrap.light-bg {
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 10px;
  border-radius: 6px;
}

/* ---- PRESENTATIONS SECTION ---- */
.presentation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.presentation-header .org-icon-wrap {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  border-radius: 4px;
}

.presentation-header .org-icon {
  height: 24px;
}

.presentation-header .org-icon.square {
  height: 28px;
  width: 28px;
}

.presentation-header .org-icon.wide {
  height: 20px;
}

.presentation-header .org-icon.tall {
  height: 26px;
}

.presentation-card:hover .org-icon-wrap {
  transform: scale(1.05);
}

/* Override white pill for dark-bg logos in presentations */
.presentation-header .org-icon-wrap.dark-bg {
  background: linear-gradient(135deg, #4a3520 0%, #3a2815 100%);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ---- EXPERIENCE SECTION ---- */
.exp-company-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.exp-card:hover .org-icon-wrap {
  transform: scale(1.05);
}

/* ---- LEADERSHIP SECTION ---- */
.lead-org-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.lead-org-wrap .org-icon {
  height: 30px;
}

.lead-org-wrap .org-icon.square {
  height: 34px;
  width: 34px;
}

.lead-org-wrap .org-icon.wide {
  height: 26px;
}

.lead-card:hover .org-icon-wrap {
  transform: scale(1.05);
}

/* ---- AWARDS SECTION ---- */
.award-org-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.award-org-wrap .org-icon {
  height: 30px;
}

.award-org-wrap .org-icon.square {
  height: 34px;
  width: 34px;
}

.award-org-wrap .org-icon.wide {
  height: 26px;
}

.award-card:hover .org-icon-wrap {
  transform: scale(1.05);
}

/* ---- SERVICE SECTION ---- */
.service-org-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ---- EDUCATION SECTION ---- */
.education-school-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.education-school-wrap .org-icon {
  height: 36px;
  max-width: 80px;
  object-fit: contain;
}

.education-school-wrap .org-icon.square {
  height: 38px;
  width: 38px;
}

.education-school-wrap .org-icon.wide {
  height: 32px;
}

.education-school-wrap .org-icon.ultrawide {
  height: 28px;
  max-width: 70px;
}

.education-item:hover .org-icon-wrap {
  transform: scale(1.05);
}

/* ---- JOURNEY SECTION ---- */
.journey-icon-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Keep icons aligned in journey section */
.journey-icon-wrap .org-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-icon-wrap .org-icon {
  height: 28px;
  max-width: 110px;
}

.journey-icon-wrap .org-icon.square {
  height: 32px;
  width: 32px;
}

.journey-icon-wrap .org-icon.wide {
  height: 24px;
}

.journey-icon-wrap .org-icon.ultrawide {
  height: 18px;
}

.journey-icon-wrap .org-icon.tall {
  height: 32px;
}

.journey-chapter:hover .org-icon-wrap {
  transform: scale(1.05);
}


/* ---- MOBILE ---- */
@media (max-width: 600px) {
  .org-icon {
    height: 26px;
    max-width: 110px;
  }

  .org-icon.square {
    height: 30px;
    width: 30px;
  }

  .org-icon.wide {
    height: 22px;
    max-width: 120px;
  }

  .org-icon.tall {
    height: 28px;
  }

  .org-icon.ultrawide {
    height: 18px;
    max-width: 90px;
  }

  .exp-company-wrap,
  .service-org-wrap {
    flex-wrap: wrap;
  }

  .org-icon-wrap.dark-bg .org-icon {
    height: 18px;
  }
}

/* Print */
@media print {
  .nav, .hero-links, .exp-toggle, .lead-toggle { display: none; }
  .hero { padding-top: 0; }
  .section { padding: 0.75rem 0; }
  .animate-in { opacity: 1; transform: none; }
  .exp-story { max-height: none; }
  .exp-story-inner { border-top: none; padding-top: 0.5rem; }
  .lead-story { display: none; }
  .publication-card { background: #eee; color: #000; }

  /* Print-friendly org icons */
  .org-icon {
    height: 14px;
    max-width: 60px;
  }

  .org-icon.square {
    height: 16px;
    width: 16px;
  }

  .org-icon.tall {
    height: 16px;
  }

  .org-icon.wide {
    height: 12px;
    max-width: 70px;
  }

  .org-icon-wrap.dark-bg {
    padding: 2px 4px;
  }
}
