/* cryptid energy channeled directly into code by ur boy frank */
/* Container with full-width background */
.blog-post-hero-container {
  width: 100%;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align wrapper to bottom */

  @media (max-width: 900px) {
    .default-content-wrapper {
      p {
        margin: 0;
      }
    }
  }
}

.blog-post-hero-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.blog-post-hero {
  width: 100%;
  padding: 0;
  margin: 2rem 0 -4rem 0;

  @media (max-width: 900px) {
    margin: 0;
  }
}

/* Main content container */
.blog-post-hero-content {
  display: flex;
  gap: 0;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1.5px solid #406e0c66;
  animation: glowPulseHero 10s infinite ease-in-out;
  overflow: hidden;
}
@media (max-width: 600px) {
  .blog-post-hero-content {
    border-radius: 0;
  }
}
@keyframes glowPulseHero {
  0% {
    border-color: rgba(64, 110, 12, 0.3);
  }
  50% {
    border-color: rgba(64, 110, 12, 1);
  }
  100% {
    border-color: rgba(64, 110, 12, 0.3);
  }
}

/* Image column - dynamic sizing based on aspect ratio */
.hero-image-col {
  flex: 0 0 auto; /* Size based on content */
  display: flex;
  align-items: center;
}

/* 16:9 aspect ratio (default) */
.hero-image-col.aspect-16-9 {
  width: 700px;
  height: 393.75px; /* 700px * 9/16 = 393.75px for 16:9 aspect ratio */
}

/* 1:1 aspect ratio (square) */
.hero-image-col.aspect-1-1 {
  width: 393.75px;
  height: 393.75px; /* Square aspect ratio */
}

.hero-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Content column - takes remaining space */
.hero-content-col {
  flex: 1; /* Takes remaining space */
  padding: 1.25rem;
  background-color: var(--bg-color-1); /* Initial color, will be overridden by JS */
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-width: 250px; /* Minimum width for readability */
  height: 393.75px; /* Match image column height */
}

/* Content column adjustments for different aspect ratios */
.hero-content-col.with-square-image {
  /* More space available when image is square */
  padding: 2rem;
}

.hero-content-col.with-square-image h1 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

/* Typography */
.hero-content-col h1 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text-color);
}

.hero-category {
  font-size: 1rem;
  color: var(--link-color);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  font-family: var(--heading-font-family);
}

/* Tags */
.hero-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0.5rem 0 0 0;
  list-style: none;
}

.hero-tags li {
  color: var(--link-color);
  border: 1.5px solid var(--link-color);
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Meta info */
.hero-meta-info {
  margin-top: 0.5rem;
  padding-top: 0;
  font-family: var(--heading-font-family);
}

.hero-tags{
  border-top: 1px solid #406e0c8c;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  font-family: var(--heading-font-family);
}

.hero-author,
.hero-date {
  display: block;
  font-size: 0.75rem;
  color: var(--link-color);
  margin-bottom: 0.5rem;
  font-family: var(--heading-font-family);
}

.hero-author {
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
}

/* Space after hero to offset the negative margin overlap */
.blog-post-hero-container + .section {
  padding-top: 6rem;
}

/* Mobile layout - stack vertically */
@media (max-width: 858px) {
  .blog-post-hero-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .blog-post-hero-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .blog-post-hero {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .blog-post-hero-content {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-image-col {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    flex: none;
  }
  
  .hero-image-col img {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
  }
  
  /* Maintain aspect ratios on mobile */
  .hero-image-col.aspect-16-9 img {
    aspect-ratio: 16/9;
  }
  
  .hero-image-col.aspect-1-1 img {
    aspect-ratio: 1/1;
  }
  
  .hero-content-col {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    padding: 1.5rem;
    flex: none;
    min-width: auto;
  }
  
  .hero-content-col h1 {
    font-size: 1.75rem;
  }
}

/* Mobile layout - stack vertically */
@media (max-width: 1200px) {
  .blog-post-hero {
    margin-top: 0;
  }
  
  .blog-post-hero-content {
    border-radius: 0;
  }
  
  .hero-content-col h1 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }
  .hero-category{
    margin-bottom: 0;
  }
  .hero-tags{
    margin-top: 0;

    li{
      font-size: 0.65rem;
    }
  }
}