/* ==========================================================================
   PAGE-SPECIFIC STYLES
   Consolidated styles extracted from inline styles in markdown files
   ========================================================================== */

/* Page heading hierarchy — class-based rules (.section-title, .hero-title) defined later override these defaults */
.experience-container h1,
.publications-container h1,
.research-container h1,
.skills-page-container h1,
.contact-container h1 {
  font-size: 2.2em;
  font-weight: 700;
  color: #111827;
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
  letter-spacing: -0.02em;
}

.experience-container h2,
.publications-container h2,
.research-container h2,
.skills-page-container h2,
.contact-container h2 {
  font-size: 1.5em;
  font-weight: 600;
  color: #2563eb;
  margin: 36px 0 14px;
}

.experience-container h3,
.publications-container h3,
.research-container h3,
.skills-page-container h3,
.contact-container h3 {
  font-size: 1.3em;
  font-weight: 700;
  color: #1f2937;
  margin: 22px 0 10px;
}

.experience-container h4,
.publications-container h4,
.research-container h4,
.skills-page-container h4,
.contact-container h4 {
  font-size: 0.95em;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 16px 0 8px;
}

/* Hero Section */
.hero-section {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 60px 0;
  margin: 0;
  width: 100%;
}

.hero-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-text {
  text-align: center;
}

.hero-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.3em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.4em;
  color: #4b5563;
  margin-bottom: 0.5em;
  font-weight: 400;
}

.hero-tagline {
  font-size: 1.1em;
  color: #6b7280;
  margin-bottom: 0.8em;
  line-height: 1.5;
}

.hero-position {
  font-size: 1.05em;
  color: #4b5563;
  margin-bottom: 0.3em;
  font-weight: 500;
}

.hero-location {
  font-size: 0.95em;
  color: #6b7280;
  margin-bottom: 2em;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95em;
}

.btn-primary {
  background: #2563eb;
  color: white;
  border: 2px solid #2563eb;
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: white;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-secondary:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #4b5563;
  border: 2px solid #d1d5db;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-2px);
}

/* Section Styles */
section {
  padding: 20px 0;
}

section:first-of-type {
  padding-top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  margin-top: 0;
  text-align: center;
}

/* Professional Overview */
.overview-section {
  background: #f9fafb;
  padding: 30px 0;
}

.lead {
  font-size: 1.1em;
  line-height: 1.6;
  color: #4b5563;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.value-prop {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 15px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.value-icon {
  width: 60px;
  height: 60px;
  background: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.5em;
}

.value-prop h3 {
  margin-bottom: 15px;
  color: #1f2937;
  font-size: 1.2em;
}

.value-prop p {
  color: #6b7280;
  line-height: 1.5;
}

/* Stats Section */
.stats-section {
  background: #f9fafb;
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.stats-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 100%;
  margin: 0 auto 40px auto;
  padding: 20px;
}

.stat-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: fit-content;
}

.stat-inline:hover {
  transform: translateY(-1px);
}

.stat-inline i {
  font-size: 1.3em;
  color: #2563eb;
  width: 24px;
  text-align: center;
}

.stat-num {
  font-size: 1.5em;
  font-weight: 700;
  color: #1f2937;
}

.stat-lbl {
  font-size: 0.9em;
  color: #6b7280;
  font-weight: 500;
}

/* Highlights Section */
.highlights-section {
  background: #ffffff;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.highlight-card {
  display: flex;
  gap: 20px;
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.highlight-card:has(a):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-color: #d1d5db;
}

.highlight-icon {
  width: 50px;
  height: 50px;
  background: #2563eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4em;
  flex-shrink: 0;
}

.highlight-content h3 {
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 1.2em;
}

.highlight-content p {
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 12px;
}

.highlight-date {
  display: inline-block;
  font-size: 0.85em;
  color: #2563eb;
  font-weight: 600;
}

/* Skills Section */
.skills-preview-section {
  background: #f9fafb;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill-category-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-direction: row;
}

.category-icon {
  width: 50px;
  height: 50px;
  background: #2563eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4em;
  flex-shrink: 0;
}

.category-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-category-card h3 {
  color: #1f2937;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
  min-width: 0;
}

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

.skill-highlights li {
  color: #4b5563;
  padding: 10px 0 10px 24px;
  position: relative;
  line-height: 1.5;
  font-size: 0.95em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.skill-highlights li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
  font-size: 1.1em;
}

/* Featured Work Section */
.featured-work {
  background: #ffffff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.project-card {
  background: white;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.project-card:has(a):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  border-color: #d1d5db;
}

.project-image-placeholder {
  width: 48px;
  height: 48px;
  background: #2563eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  font-size: 1.4em;
}

.project-card h3 {
  margin-bottom: 12px;
  color: #1f2937;
  font-size: 1.2em;
  font-weight: 600;
}

.project-card p {
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 16px;
  font-size: 0.95em;
}

.project-tags {
  margin-top: 20px;
}

.tag {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 500;
  margin: 0 8px 8px 0;
}

.project-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f3f4f6;
  color: #1a1a1a;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-readmore:hover {
  background-color: #e5e7eb;
  transform: translateY(-1px);
}

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

/* Certifications Section */
.certifications-section {
  background: #ffffff;
  margin-top: 0;
  padding-top: 20px;
}

.cert-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.cert-item:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cert-item i {
  font-size: 1.5em;
  color: #2563eb;
  flex-shrink: 0;
}

.cert-item div {
  flex: 1;
}

.cert-item strong {
  display: block;
  color: #1f2937;
  margin-bottom: 4px;
  font-size: 0.95em;
}

.cert-item span {
  color: #6b7280;
  font-size: 0.85em;
}

/* Publications Section */
.publications-section {
  background: #f9fafb;
}

.publication-list {
  max-width: 800px;
  margin: 0 auto 40px;
}

.publication-item {
  display: flex;
  background: white;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.publication-item:hover {
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.pub-year {
  background: #2563eb;
  color: white;
  padding: 16px 16px;
  font-weight: 700;
  font-size: 1em;
  display: flex;
  align-items: center;
  min-width: 70px;
  justify-content: center;
}

.pub-content {
  padding: 16px 20px;
  flex: 1;
}

.pub-content h4 {
  margin-bottom: 8px;
  color: #1f2937;
  font-weight: 600;
  line-height: 1.3;
  font-size: 1.05em;
}

.pub-authors {
  color: #6b7280;
  margin-bottom: 6px;
  font-size: 0.9em;
}

.pub-journal {
  color: #2563eb;
  font-style: italic;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9em;
}

.cta-center {
  text-align: center;
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Publications Page Styles */
.publications-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.pub-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin: 40px 0 40px;
  text-align: center;
}

.google-scholar-cta {
  text-align: center;
  margin: 30px 0 50px;
}

.btn-google-scholar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #4285f4;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-google-scholar:hover {
  background: #357ae8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
}

.btn-google-scholar i {
  font-size: 1.1em;
}

.stat-item {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-number {
  font-size: 2.5em;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 10px;
}

.stat-label {
  color: #666;
  font-weight: 600;
}

.publications-list h2 {
  color: #2c3e50;
  margin-bottom: 30px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

.publication-item.preprint {
  background: #f8f9fa;
}

.pub-content h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  line-height: 1.3;
}

.pub-journal {
  color: #1976d2;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 15px;
}

.pub-abstract {
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 0.9em;
}

.pub-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.preprints-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.preprints-section h2 {
  color: #2c3e50;
  margin-bottom: 30px;
}

/* Experience Page Styles */
.experience-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.career-overview {
  margin-bottom: 60px;
}

.career-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  text-align: center;
}

.timeline-section {
  margin-bottom: 60px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #2563eb;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 40px;
}

.timeline-item.current .timeline-marker {
  background: #10b981;
  border-color: #10b981;
}

.timeline-marker {
  position: absolute;
  left: -8px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #2563eb;
}

.timeline-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.timeline-header h3 {
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 1.3em;
}

.timeline-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.timeline-meta span {
  color: #6b7280;
  font-size: 0.9em;
}

.company {
  font-weight: 600;
  color: #2563eb !important;
}

.role-description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.achievements {
  margin-bottom: 20px;
}

.achievements h4 {
  color: #1f2937;
  margin-bottom: 10px;
}

.achievements ul {
  list-style: none;
  padding: 0;
}

.achievements li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
  color: #6b7280;
}

.achievements li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
}

.skills-used {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.skill-tag {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 500;
}

.leadership-section {
  margin-bottom: 60px;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.leadership-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #e5e7eb;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.leadership-icon {
  width: 60px;
  height: 60px;
  background: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.5em;
}

.leadership-item h3 {
  margin-bottom: 10px;
  color: #1f2937;
}

.organization {
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 5px;
}

.duration {
  color: #6b7280;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.description {
  color: #6b7280;
  line-height: 1.5;
}

.awards-section {
  margin-bottom: 60px;
}

.awards-timeline {
  margin-top: 40px;
}

.award-item {
  display: flex;
  background: white;
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.award-year {
  background: #2563eb;
  color: white;
  padding: 20px;
  font-weight: 700;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  min-width: 80px;
  justify-content: center;
}

.award-content {
  padding: 20px 30px;
  flex: 1;
}

.award-content h3 {
  margin-bottom: 8px;
  color: #1f2937;
}

.award-org {
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 5px;
}

.award-desc {
  color: #6b7280;
  line-height: 1.5;
}

.skills-development {
  margin-bottom: 60px;
}

.skills-timeline {
  margin-top: 40px;
}

.skill-period {
  background: #f9fafb;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  border-left: 4px solid #2563eb;
}

.skill-period h3 {
  margin-bottom: 15px;
  color: #1f2937;
}

.skill-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.future-goals {
  margin-bottom: 40px;
}

.goals-intro {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
  text-align: center;
  margin-bottom: 40px;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.goal-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.goal-item h3 {
  margin-bottom: 15px;
  color: #1f2937;
}

.goal-item p {
  color: #6b7280;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 2.2em;
    margin-bottom: 0.2em;
  }
  
  .hero-subtitle {
    font-size: 1.1em;
    margin-bottom: 0.3em;
  }
  
  .hero-tagline {
    font-size: 1em;
    margin-bottom: 0.3em;
  }
  
  .hero-position {
    font-size: 1em;
    margin-bottom: 0.2em;
  }
  
  .hero-location {
    font-size: 0.9em;
    margin-bottom: 1.5em;
  }
  
  .hero-cta {
    gap: 12px;
  }
  
  .btn-primary, .btn-secondary, .btn-outline {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  
  section {
    padding: 30px 0;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .section-title {
    font-size: 1.6em;
    margin-bottom: 24px;
  }
  
  .lead {
    font-size: 1em;
    margin-bottom: 24px;
  }
  
  .value-props {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stats-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
  }

  .stat-inline {
    gap: 8px;
  }

  .stat-num {
    font-size: 1.3em;
  }

  .stat-lbl {
    font-size: 0.85em;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .highlight-card {
    flex-direction: column;
    text-align: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .project-card {
    padding: 24px;
  }
  
  .project-image-placeholder {
    width: 48px;
    height: 48px;
  }
  
  .category-header {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    padding-left: 20px;
  }
  
  .timeline-item {
    padding-left: 30px;
  }
  
  .timeline-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .career-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  
  .award-item {
    flex-direction: column;
  }
  
  .award-year {
    min-width: auto;
    padding: 15px;
  }
  
  .goals-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-google-scholar {
    padding: 12px 24px;
    font-size: 0.95em;
  }
  
  .pub-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-compact {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 1.8em;
  }
  
  .hero-subtitle {
    font-size: 1em;
  }
}
