/* Blog Index Styles */
#landingPage .blog-hero {
  background: transparent;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#landingPage .blog-hero h1 {
  font-size: 64px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

#landingPage .blog-hero p {
  font-size: 22px;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

#landingPage .blog-hero .blog-title {
  font-size: 32px;
  color: var(--landing-primary);
}

/* Featured Post Card */
#landingPage .featured-post {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  margin-bottom: 80px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#landingPage .featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

#landingPage .featured-post .featured-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

#landingPage .featured-post .featured-text {
  padding: 60px;
  text-align: left;
}

#landingPage .featured-post .featured-label {
  display: inline-block;
  background: var(--landing-primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

#landingPage .featured-post h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

#landingPage .featured-post .post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-light);
}

#landingPage .featured-post .author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

#landingPage .featured-post .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#landingPage .featured-post .featured-summary {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 30px;
}

#landingPage .featured-post .featured-image {
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

/* Filter Chips */
#landingPage .filter-chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Hide filtered cards */
#landingPage .blog-card-link.hide {
  display: none;
}

#landingPage .filter-chip {
  padding: 8px 20px;
  border: 1px solid #e1e5e9;
  background: white;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

#landingPage .filter-chip:hover {
  border-color: var(--landing-primary);
  color: var(--landing-primary);
}

#landingPage .filter-chip.active {
  background: var(--landing-primary);
  color: white;
  border-color: var(--landing-primary);
}

/* Blog Grid */
#landingPage .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

#landingPage .blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

#landingPage .blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

#landingPage .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

#landingPage .blog-card-link:hover .blog-card h3 {
  color: var(--landing-primary);
}

#landingPage .blog-card .card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--landing-background);
}

#landingPage .blog-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#landingPage .blog-card:hover .card-image img {
  transform: scale(1.05);
}

#landingPage .blog-card .card-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#landingPage .blog-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin: 0 0 12px 0;
}

#landingPage .blog-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-light);
  flex-wrap: wrap;
}

#landingPage .blog-card .card-meta > span {
  font-size: 12px;
}

#landingPage .blog-card .card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

#landingPage .blog-card .card-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

#landingPage .blog-card .card-summary {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 20px;
  flex: 1;
}

#landingPage .blog-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--landing-primary);
  font-weight: 600;
  font-size: 15px;
  transition: gap 0.2s ease;
  cursor: pointer;
}

#landingPage .blog-card:hover .card-link {
  gap: 10px;
}

/* Type chip styles */
#landingPage .type-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}

#landingPage .type-chip i {
  font-size: 9px;
}

#landingPage .type-chip.type-podcast {
  background: rgba(147, 51, 234, 0.1);
}

#landingPage .type-chip.type-video {
  background: rgba(239, 68, 68, 0.1);
}

#landingPage .type-chip.type-guide {
  background: rgba(197, 173, 34, 0.1);
}

#landingPage .type-chip.type-article {
  background: rgba(59, 130, 246, 0.1);
}

/* Blog Post Styles */
#landingPage .post-hero {
  padding: 120px 0 60px;
  background: transparent;
}

#landingPage .post-hero-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

#landingPage .post-hero-text {
  text-align: left;
}

#landingPage .post-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-dark);
}

#landingPage .post-hero .hero-description {
  text-align: left;
  margin-bottom: 24px;
}

#landingPage .post-hero .post-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  color: var(--text-medium);
}

#landingPage .post-hero .author-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

#landingPage .post-hero .author-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#landingPage .post-hero-image {
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#landingPage .post-content-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
  padding: 0 24px;
}

#landingPage .post-content {
  background: transparent;
  border-radius: 16px;
  padding: 0;
}

#landingPage .post-cover {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
}

#landingPage .post-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* Blog Content Typography */

#landingPage .podcast-embed iframe {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow:hidden;
}

#landingPage .blog-content {
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-medium);
}

#landingPage .blog-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 48px 0 24px;
  color: var(--text-dark);
  position: relative;
  padding-top: 24px;
}

#landingPage .blog-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

#landingPage .blog-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 36px 0 20px;
  color: var(--text-dark);
}

#landingPage .blog-content p {
  margin-bottom: 24px;
}

#landingPage .blog-content ul,
#landingPage .blog-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

#landingPage .blog-content li {
  margin-bottom: 12px;
  line-height: 1.8;
}

#landingPage .blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#landingPage .blog-content a {
  color: var(--landing-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

#landingPage .blog-content a:hover {
  color: var(--landing-primary-dark);
  text-decoration-thickness: 2px;
}

#landingPage .blog-content blockquote {
  border-left: 4px solid var(--landing-primary);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-dark);
  background: var(--landing-background);
  padding: 24px;
  border-radius: 8px;
}

#landingPage .blog-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Monaco', 'Consolas', monospace;
}

#landingPage .blog-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

#landingPage .blog-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Video and iframe embeds */
#landingPage .blog-content .video-wrapper,
#landingPage .blog-content .iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 32px 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#landingPage .blog-content .video-wrapper iframe,
#landingPage .blog-content .iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

#landingPage .blog-content video,
#landingPage .blog-content .blog-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin: 32px 0;
}

/* Custom aspect ratios */
#landingPage .blog-content .video-wrapper.square {
  padding-bottom: 100%; /* 1:1 */
}

#landingPage .blog-content .video-wrapper.vertical {
  padding-bottom: 177.77%; /* 9:16 */
}

/* Non-responsive iframe (e.g., for forms) */
#landingPage .blog-content .iframe-fixed {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#landingPage .blog-content .iframe-fixed iframe {
  width: 100%;
  border: none;
}

/* Table of Contents Sidebar */
#landingPage .post-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

#landingPage .toc-widget {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

#landingPage .toc-widget h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

#landingPage .toc-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#landingPage .toc-nav li {
  margin-bottom: 0;
}

#landingPage .toc-nav a {
  color: var(--text-medium);
  font-size: 15px;
  transition: all 0.2s ease;
  display: block;
  padding: 4px 0 4px 12px;
  line-height: 1.4;
}

#landingPage .toc-nav a:hover {
  color: var(--landing-primary);
}

#landingPage .toc-nav .toc-h3 {
  padding-left: 24px;
  font-size: 14px;
}

/* Related Resources Section */
#landingPage .related-resources {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e1e5e9;
}

#landingPage .related-resources h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
}

#landingPage .resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#landingPage .resource-card {
  display: block;
  padding: 24px;
  background: #f8faff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

#landingPage .resource-card:hover {
  background: white;
  border-color: var(--landing-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

#landingPage .resource-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--landing-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#landingPage .resource-card h3 i {
  font-size: 14px;
  opacity: 0.6;
}

#landingPage .resource-card p {
  font-size: 15px;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.5;
}

/* CTA Widget */
#landingPage .cta-widget {
  background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-primary-dark) 100%);
  border-radius: 16px;
  padding: 32px;
  color: white;
  text-align: center;
}

#landingPage .cta-widget h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

#landingPage .cta-widget p {
  font-size: 15px;
  margin-bottom: 20px;
  opacity: 0.95;
  color: white;
}

#landingPage .cta-widget .typeform-button button {
  background: white !important;
  color: var(--landing-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

#landingPage .cta-widget .typeform-button button:hover {
  background: #f8f8f8 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Responsive */
@media (max-width: 1200px) {
  #landingPage .post-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  #landingPage .post-sidebar {
    position: relative;
    top: 0;
    max-width: 600px;
    margin: 0 auto;
    display: none;
  }
  
  #landingPage .featured-post .featured-content {
    grid-template-columns: 1fr;
  }
  
  #landingPage .featured-post .featured-text {
    padding: 40px;
  }
  
  #landingPage .featured-post .featured-image {
    height: 300px;
  }
  
  #landingPage .post-hero-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  #landingPage .post-hero-image {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  #landingPage .blog-hero h1 {
    font-size: 42px;
  }
  
  #landingPage .blog-hero p {
    font-size: 18px;
  }
  
  #landingPage .post-hero h1 {
    font-size: 36px;
  }
  
  #landingPage .post-cover {
    margin: -32px -32px 32px;
  }
  
  #landingPage .blog-content {
    font-size: 17px;
  }
  
  #landingPage .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
