/* Import main styles */
@import url("main.css");

/* ============================================================================ */
/* TAXONOMY CSS VARIABLES AND BASE CLASSES */
/* ============================================================================ */

:root {
  /* Taxonomy Colors */
  --taxonomy-category-bg: #e3f2fd;
  --taxonomy-category-text: #1976d2;
  --taxonomy-category-hover-bg: #bbdefb;
  --taxonomy-category-hover-text: #0d47a1;

  --taxonomy-series-bg: #f3e5f5;
  --taxonomy-series-text: #8e24aa;
  --taxonomy-series-hover-bg: #e1bee7;
  --taxonomy-series-hover-text: #6a1b9a;

  --taxonomy-tag-bg: #f8f9fa;
  --taxonomy-tag-text: #6c757d;
  --taxonomy-tag-hover-bg: #e3f2fd;
  --taxonomy-tag-hover-text: #1976d2;

  /* Common Properties */
  --taxonomy-border-radius: 12px;
  --taxonomy-padding: 6px 16px;
  --taxonomy-font-size: 0.875rem;
  --taxonomy-font-weight: 500;
  --taxonomy-transition: all 0.2s ease;
}

/* Base taxonomy element */
.taxonomy-element {
  border: none;
  padding: var(--taxonomy-padding);
  border-radius: var(--taxonomy-border-radius);
  font-size: var(--taxonomy-font-size);
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
}

/* Taxonomy variants */
.taxonomy-element--category {
  background: var(--taxonomy-category-bg);
  color: var(--taxonomy-category-text);
}

.taxonomy-element--series {
  background: var(--taxonomy-series-bg);
  color: var(--taxonomy-series-text);
}

.taxonomy-element--tag {
  background: var(--taxonomy-tag-bg);
  color: var(--taxonomy-tag-text);
}

/* States */
.taxonomy-element--inactive {
  opacity: 0.6;
}

.taxonomy-element--active {
  opacity: 1;
}

/* Hover states */
.taxonomy-element--category:hover {
  background: var(--taxonomy-category-hover-bg);
  color: var(--taxonomy-category-hover-text);
  opacity: 1;
}

.taxonomy-element--series:hover {
  background: var(--taxonomy-series-hover-bg);
  color: var(--taxonomy-series-hover-text);
  opacity: 1;
}

.taxonomy-element--tag:hover {
  background: var(--taxonomy-tag-hover-bg);
  color: var(--taxonomy-tag-hover-text);
}

/* Utility Classes for Specific Contexts */
.taxonomy-category {
  border: none;
  padding: var(--taxonomy-padding);
  border-radius: var(--taxonomy-border-radius);
  font-size: var(--taxonomy-font-size);
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
  background: var(--taxonomy-category-bg);
  color: var(--taxonomy-category-text);
}

.taxonomy-series {
  border: none;
  padding: var(--taxonomy-padding);
  border-radius: var(--taxonomy-border-radius);
  font-size: var(--taxonomy-font-size);
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
  background: var(--taxonomy-series-bg);
  color: var(--taxonomy-series-text);
}

.taxonomy-tag {
  border: none;
  padding: var(--taxonomy-padding);
  border-radius: var(--taxonomy-border-radius);
  font-size: var(--taxonomy-font-size);
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
  background: var(--taxonomy-tag-bg);
  color: var(--taxonomy-tag-text);
}

.taxonomy-category-inactive {
  border: none;
  padding: var(--taxonomy-padding);
  border-radius: var(--taxonomy-border-radius);
  font-size: var(--taxonomy-font-size);
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
  background: var(--taxonomy-category-bg);
  color: var(--taxonomy-category-text);
  opacity: 0.6;
}

.taxonomy-series-inactive {
  border: none;
  padding: var(--taxonomy-padding);
  border-radius: var(--taxonomy-border-radius);
  font-size: var(--taxonomy-font-size);
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
  background: var(--taxonomy-series-bg);
  color: var(--taxonomy-series-text);
  opacity: 0.6;
}

.taxonomy-tag-inactive {
  border: none;
  padding: var(--taxonomy-padding);
  border-radius: var(--taxonomy-border-radius);
  font-size: var(--taxonomy-font-size);
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
  background: var(--taxonomy-tag-bg);
  color: var(--taxonomy-tag-text);
  opacity: 0.6;
}

.taxonomy-category-active {
  border: none;
  padding: var(--taxonomy-padding);
  border-radius: var(--taxonomy-border-radius);
  font-size: var(--taxonomy-font-size);
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
  background: var(--taxonomy-category-bg);
  color: var(--taxonomy-category-text);
  opacity: 1;
}

.taxonomy-series-active {
  border: none;
  padding: var(--taxonomy-padding);
  border-radius: var(--taxonomy-border-radius);
  font-size: var(--taxonomy-font-size);
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
  background: var(--taxonomy-series-bg);
  color: var(--taxonomy-series-text);
  opacity: 1;
}

.taxonomy-tag-active {
  border: none;
  padding: var(--taxonomy-padding);
  border-radius: var(--taxonomy-border-radius);
  font-size: var(--taxonomy-font-size);
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
  background: var(--taxonomy-tag-bg);
  color: var(--taxonomy-tag-text);
  opacity: 1;
}

/* Context-Specific Classes */
.taxonomy-filter {
  border: none;
  padding: var(--taxonomy-padding);
  border-radius: var(--taxonomy-border-radius);
  font-size: var(--taxonomy-font-size);
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
}

.taxonomy-post-meta {
  border: none;
  padding: 4px 8px;
  border-radius: var(--taxonomy-border-radius);
  font-size: 0.75rem;
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
}

.taxonomy-overlay {
  border: none;
  padding: 2px 7px;
  border-radius: var(--taxonomy-border-radius);
  font-size: 0.55rem;
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

/* Overlay-specific variants for hero image overlays */
.taxonomy-overlay--category {
  background: rgba(102, 126, 234, 0.9);
  color: white;
}

.taxonomy-overlay--series {
  background: rgba(138, 36, 170, 0.9);
  color: white;
}

.taxonomy-overlay--tag {
  background: rgba(108, 117, 125, 0.9);
  color: white;
}

.taxonomy-breadcrumb {
  border: none;
  padding: 4px 8px;
  border-radius: var(--taxonomy-border-radius);
  font-size: 0.875rem;
  font-weight: var(--taxonomy-font-weight);
  display: inline-block;
  transition: var(--taxonomy-transition);
  text-decoration: none;
  cursor: pointer;
}

/* Hover states for utility classes */
.taxonomy-category:hover {
  background: var(--taxonomy-category-hover-bg);
  color: var(--taxonomy-category-hover-text);
  opacity: 1;
}

.taxonomy-series:hover {
  background: var(--taxonomy-series-hover-bg);
  color: var(--taxonomy-series-hover-text);
  opacity: 1;
}

.taxonomy-tag:hover {
  background: var(--taxonomy-tag-hover-bg);
  color: var(--taxonomy-tag-hover-text);
}

.taxonomy-category-inactive:hover {
  background: var(--taxonomy-category-hover-bg);
  color: var(--taxonomy-category-hover-text);
  opacity: 1;
}

.taxonomy-series-inactive:hover {
  background: var(--taxonomy-series-hover-bg);
  color: var(--taxonomy-series-hover-text);
  opacity: 1;
}

.taxonomy-tag-inactive:hover {
  background: var(--taxonomy-tag-hover-bg);
  color: var(--taxonomy-tag-hover-text);
}

/* Hover states for post-meta context */
.taxonomy-post-meta.taxonomy-category-active:hover {
  background: var(--taxonomy-category-hover-bg);
  color: var(--taxonomy-category-hover-text);
  opacity: 1;
}

.taxonomy-post-meta.taxonomy-series-active:hover {
  background: var(--taxonomy-series-hover-bg);
  color: var(--taxonomy-series-hover-text);
  opacity: 1;
}

.taxonomy-post-meta.taxonomy-tag-active:hover {
  background: var(--taxonomy-tag-hover-bg);
  color: var(--taxonomy-tag-hover-text);
}

/* Blog Content */
.blog-content {
  background: white;
  padding: 40px 0;
  /* margin-top: -60px; */
  border-radius: 24px 24px 0 0;
  position: relative;
}

/* For individual blog posts (no hero section) */
body:not(.has-hero) .blog-content {
  margin-top: 0;
  border-radius: 0;
}

/* ============================================================================ */
/* TAXONOMY TEMPLATES STYLING */
/* ============================================================================ */

/* Taxonomy Grid Layout */
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.taxonomy-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.taxonomy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.taxonomy-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.taxonomy-term-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3748;
}

.taxonomy-post-count {
  color: #667eea;
  font-weight: 500;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.taxonomy-description {
  color: #718096;
  line-height: 1.6;
  margin-bottom: 16px;
}

.taxonomy-recent-posts {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.taxonomy-recent-posts h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

.taxonomy-recent-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.taxonomy-recent-posts li {
  margin-bottom: 6px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.taxonomy-recent-posts a {
  color: #2d3748;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
}

.taxonomy-recent-posts a:hover {
  color: #667eea;
}

.post-date-small {
  color: #a0aec0;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.breadcrumb-separator {
  color: #e2e8f0;
  font-weight: 300;
  font-size: 0.875rem;
  margin: 0 2px;
}

.breadcrumb-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-block;
  background: #f0f4ff;
  line-height: 1.2;
}

.breadcrumb-link:hover {
  color: #5a67d8;
  background: #e3f2fd;
}

/* Taxonomy-specific breadcrumb link styles - button-like elements */
.breadcrumb-nav[data-taxonomy="categories"] .breadcrumb-link {
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 500;
}

.breadcrumb-nav[data-taxonomy="categories"] .breadcrumb-link:hover {
  background: #bbdefb;
  color: #0d47a1;
}

.breadcrumb-nav[data-taxonomy="series"] .breadcrumb-link {
  background: #f3e5f5;
  color: #8e24aa;
  font-weight: 500;
}

.breadcrumb-nav[data-taxonomy="series"] .breadcrumb-link:hover {
  background: #e1bee7;
  color: #6a1b9a;
}

.breadcrumb-nav[data-taxonomy="tags"] .breadcrumb-link {
  background: #f5f5f5;
  color: #666;
  font-weight: 500;
}

.breadcrumb-nav[data-taxonomy="tags"] .breadcrumb-link:hover {
  background: #e3f2fd;
  color: #1976d2;
}

.breadcrumb-current {
  color: #4a5568;
  font-weight: 500;
  padding: 4px 8px;
  display: inline-block;
  line-height: 1.2;
}

/* Term Description */
.term-description {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 4px solid #667eea;
}

.term-description p {
  margin: 0;
  color: #4a5568;
  line-height: 1.6;
}

/* Related Terms */
.related-terms {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.related-terms h3 {
  margin-bottom: 16px;
  color: #2d3748;
  font-size: 1.1rem;
}

.related-terms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Empty States */
.empty-taxonomy,
.empty-section {
  text-align: center;
  padding: 60px 20px;
  color: #718096;
}

.empty-taxonomy h3,
.empty-section h3 {
  color: #4a5568;
  margin-bottom: 12px;
}

.empty-taxonomy p,
.empty-section p {
  margin-bottom: 24px;
}

/* Simple Page List (for non-blog sections) */
.simple-page-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.simple-page-item {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.simple-page-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.simple-page-link {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.simple-page-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3748;
}

.simple-page-date {
  color: #718096;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.simple-page-description {
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* Section Navigation */
.section-navigation {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.section-navigation h3 {
  margin-bottom: 16px;
  color: #2d3748;
  font-size: 1.1rem;
}

.section-nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.section-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f7fafc;
  border-radius: 8px;
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: all 0.3s ease;
}

.section-nav-link:hover {
  background: #e3f2fd;
  color: #1976d2;
  transform: translateY(-1px);
}

.section-nav-link i {
  width: 16px;
  height: 16px;
}

/* Responsive Design for Taxonomy Templates */
@media (max-width: 768px) {
  .taxonomy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .taxonomy-card {
    padding: 20px;
  }

  .breadcrumb-nav {
    font-size: 0.9rem;
  }

  .taxonomy-recent-posts li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .section-nav-links {
    flex-direction: column;
  }

  .section-nav-link {
    justify-content: center;
  }
}

/* ============================================================================ */
/* EXISTING BLOG STYLES */
/* ============================================================================ */

.blog-header {
  text-align: center;
  margin-bottom: 60px;
}

.blog-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2d3748;
}

.blog-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #718096;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

/* Limit width only when there's a single blog post */
.blog-post:only-child {
  max-width: 580px;
  justify-self: center;
}

.blog-post {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.post-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.post-link:hover {
  text-decoration: none;
  color: inherit;
}

.post-list-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #2d3748;
}

.post-date {
  color: #718096;
  font-size: 0.75rem;
  margin-bottom: 5px;
  margin-top: 0px;
}

.post-excerpt {
  color: #718096;
  line-height: 1.7;
  margin-bottom: 20px;
}

.read-more {
  display: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
}

.back-link:hover {
  opacity: 0.8;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  /* margin-bottom: 30px; */
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(102, 126, 234, 0.1);
  line-height: 1.2;
}

.back-to-blog:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateX(-4px);
}

/* Blog Post View */
.blog-post-view {
  display: none;
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-view.show {
  display: block;
}

.blog-list-view {
  display: block;
}

.blog-list-view.hide {
  display: none;
}

.post-content {
  line-height: 1.8;
  color: #2d3748;
  max-width: 800px;
  margin: 0 auto;
}

/* CTA section after blog post content */
.cta-blog-post {
  margin: 60px auto 40px auto;
  padding: 0 20px;
}

.cta-blog-post .calendly-inline-widget {
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06); */
}

.post-content h1,
.post-content h2,
.post-content h3 {
  color: #2d3748;
  margin-top: 30px;
  margin-bottom: 15px;
}

.post-content h1 {
  font-size: 2rem;
  font-weight: 700;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.post-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  border-left: 4px solid #667eea;
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #4a5568;
}

.post-content code {
  background: #f7fafc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

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

/* Navigation */
.post-navigation {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #2d3748;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 300px;
}

.nav-link:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  transform: translateY(-2px);
}

.nav-link.prev {
  justify-content: flex-start;
}

.nav-link.next {
  justify-content: flex-end;
  text-align: right;
}

.nav-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-link.disabled:hover {
  transform: none;
  background: #f7fafc;
  border-color: #e2e8f0;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label {
  font-size: 0.875rem;
  color: #718096;
  font-weight: 400;
}

.nav-title {
  font-size: 1rem;
  color: #2d3748;
  font-weight: 600;
  line-height: 1.4;
}

/* Blog Post Specific Styles */
.post-header {
  margin-bottom: 40px;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2d3748;
  text-align: center;
}

/* Centered post meta below title */
.post-meta-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: #718096;
}

.meta-by {
  font-weight: 500;
  color: #4a5568;
}

.meta-author {
  font-weight: 600;
  color: #2d3748;
}

.meta-separator {
  color: #cbd5e0;
  font-weight: 300;
}

.meta-date,
.meta-reading {
  color: #718096;
}

/* Centered post description below title */
.post-description {
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 24px auto 32px auto;
  max-width: 800px;
  font-style: italic;
}

.post-date {
  color: #718096;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

/* CTA Section */

.blog-content {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-content {
    padding: 40px 20px;
  }

  .blog-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .post-list-title {
    font-size: 1rem;
  }

  .post-navigation {
    flex-direction: column;
    gap: 16px;
  }

  .post-meta-centered {
    font-size: 0.8rem;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .post-description {
    font-size: 1rem;
    margin: 20px auto 28px auto;
    padding: 0 16px;
  }

  .cta-blog-post {
    margin: 40px auto 30px auto;
    padding: 0 16px;
  }

  .cta-blog-post .calendly-inline-widget {
    min-width: 280px !important;
    height: 600px !important;
  }

  .nav-link {
    max-width: none;
    width: 100%;
  }

  .nav-link.next {
    text-align: left;
    justify-content: flex-start;
  }
  /* .calendly-inline-widget {
    min-width:320px;
    height:700px
  } */
}

/* ============================================================================ */
/* ENHANCED BLOG FEATURES */
/* ============================================================================ */

/* Series Badge and Navigation */
.series-badge {
  background: rgba(138, 36, 170, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0;
  display: inline-block;
  backdrop-filter: blur(4px);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.series-badge:hover {
  background: rgba(138, 36, 170, 1);
  color: white;
  transform: translateY(-1px);
}

.series-label {
  font-weight: 400;
  opacity: 0.8;
}

.series-part {
  margin-left: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
}

.series-navigation {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}

.series-navigation h3 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 1.1rem;
}

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

.series-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.series-list li:last-child {
  border-bottom: none;
}

.series-list li.current .current-post {
  font-weight: bold;
  color: #1976d2;
}

.series-list a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.series-list a:hover {
  color: #1976d2;
}

/* Category Filters */
.blog-filters {
  margin: 8px 0 16px 0;
  text-align: center;
}

/* Bottom positioned filters */
.blog-filters-bottom {
  margin: 24px 0 0 0;
  padding-top: 24px;
}

/* Maintain series spacing consistency at bottom */
.blog-filters-bottom.series-filters {
  margin: 16px 0 0 0;
  padding-top: 0;
}

.blog-filters h3 {
  margin-bottom: 16px;
  color: #333;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Filter Tags - Consistent 0.875rem size for all filter buttons */
/* OLD STYLES REMOVED - Replaced with taxonomy-* classes above */

/* Series Filters Spacing */
.series-filters {
  margin: 16px 0 0 0;
}

/* Enhanced Post Meta */

.post-updated {
  font-style: italic;
}

/* Taxonomies Container */
.post-taxonomies {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Default styles for posts without hero images */
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

/* OLD STYLES REMOVED - Replaced with taxonomy-* classes above */

/* Categories above title - centered */
.post-categories-above-title {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px 0;
}

.post-series {
  /* margin: 16px 0; */
  text-align: left;
}

/* Series Tag in Post Header */
.post-series-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* OLD STYLES REMOVED - Replaced with taxonomy-* classes above */

.series-part-small {
  background: #7b1fa2;
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* Post Categories in List */
.post-hero-image .post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-start;
  margin: 0;
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  z-index: 15;
}

/* OLD STYLES REMOVED - Replaced with taxonomy-overlay classes above */

/* Post Tags */
.post-tags {
  margin: 24px 0 0 0;
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
}

/* OLD STYLES REMOVED - Replaced with taxonomy-* classes above */

/* OLD STYLES REMOVED - Replaced with taxonomy-* classes above */

/* Table of Contents */
.table-of-contents {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}

.table-of-contents h3 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 1.1rem;
}

.table-of-contents ul {
  margin: 0;
  padding-left: 20px;
}

.table-of-contents li {
  margin: 8px 0;
}

.table-of-contents a {
  color: #666;
  text-decoration: none;
}

.table-of-contents a:hover {
  color: #1976d2;
  text-decoration: underline;
}

/* Related Posts */
.related-posts {
  /* margin: 48px 0 32px 0; */
  padding: 32px 0;
  /* border-top: 2px solid #e0e0e0; */
}

.related-posts h3 {
  margin: 0 0 24px 0;
  color: #333;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.related-post {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.related-post:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-post a {
  text-decoration: none;
  color: inherit;
}

.related-post h4 {
  margin: 0 0 12px 0;
  color: #333;
  font-size: 1.1rem;
}

.related-post p {
  margin: 0 0 16px 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.related-post .read-more {
  color: #1976d2;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Enhanced Blog List Posts */
.post-hero-image .post-series {
  margin: 0;
  text-align: left;
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  z-index: 15;
}

/* Smaller series badge when overlaid on images */
.post-hero-image .series-badge {
  padding: 3px 8px;
  font-size: 0.7rem;
  border-radius: 12px;
}

.post-hero-image .series-part {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.6rem;
}

.post-series .series-badge {
  margin-bottom: 0;
  margin-right: 8px;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    min-width: 200px;
  }

  .post-date {
    margin: 8px 0;
  }

  .post-taxonomies {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================ */
/* HERO IMAGES */
/* ============================================================================ */

/* Hero Image in Blog List Items */
.post-hero-image {
  width: calc(100% + 60px);
  margin: -40px -30px 20px -30px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
  transform: translateZ(
    0
  ); /* Force hardware acceleration for smoother animations */
}

/* Brand filter overlay for custom images */
.post-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/img/blog/default-hero.jpg");
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
  z-index: 2;
  pointer-events: none;
}

.post-hero-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center; /* Default positioning */
  display: block;
  transition: transform 0.3s ease;
}

.blog-post:hover .post-hero-image img {
  transform: scale(1.05);
}

/* Hero Image in Single Blog Post */
.post-hero-image-single {
  width: 100%;
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-hero-image-single img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center center; /* Default positioning */
  display: block;
}

/* Dynamic Decimal Positioning System */
/* Uses CSS custom properties set by Hugo templates */
/* Zoom mapping: 0.0 = 1.0 (full coverage), 1.0 = 1.5 (normal zoom), 2.0 = 2.0 (200% zoom) */
.post-hero-image img,
.post-hero-image-single img {
  object-position: var(--img-position, center center);
  transform: scale(calc(1 + var(--img-scale, 0) * 0.5));
}

/* Hover effects with dynamic scaling */
.blog-post:hover .post-hero-image img {
  transform: scale(calc((1 + var(--img-scale, 0) * 0.5) * 1.05));
}

/* Responsive Hero Images */
@media (max-width: 768px) {
  .post-hero-image {
    width: calc(100% + 40px);
    margin: -40px -20px 20px -20px;
  }

  .post-hero-image img {
    height: 160px;
  }

  .post-hero-image-single img {
    height: 250px;
  }

  .post-meta-tags-overlay {
    bottom: 6px;
    left: 8px;
    right: 8px;
    gap: 6px;
  }

  /* OLD STYLES REMOVED - Replaced with taxonomy-overlay classes above */

  .post-meta-tags-overlay .series-badge {
    font-size: 0.55rem;
    padding: 2px 7px;
  }

  .post-meta-tags-overlay .series-part {
    font-size: 0.4rem;
    margin-left: 2px;
    padding: 1px 3px;
  }
}

/* Post Meta Tags Overlay at Bottom of Image (configurable via hugo.toml) */
.post-meta-tags-overlay {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  z-index: 15;
}

.post-series-inline {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-categories-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* Overlay Tags - Consistent 0.55rem size for both categories and series */
.post-meta-tags-overlay .series-badge {
  background: rgba(138, 36, 170, 0.9);
  color: white;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.55rem;
  font-weight: 500;
  margin-bottom: 0;
  display: inline-block;
  backdrop-filter: blur(4px);
}

.post-meta-tags-overlay .series-part {
  margin-left: 3px;
  background: rgba(250, 248, 252, 0.9);
  color: #8e24aa;
  padding: 1px 5px;
  border-radius: 12px;
  font-size: 0.45rem;
  backdrop-filter: blur(4px);
}

/* OLD STYLES REMOVED - Replaced with taxonomy-overlay classes above */
