/** Shopify CDN: Minification failed

Line 13:0 Unexpected "{"
Line 13:1 Unexpected "{"
Line 13:3 Expected identifier but found "'component-blog-item.css'"
Line 14:0 Unexpected "<"
Line 63:0 Unexpected "<"

**/


/* CSS from section stylesheet tags */
{{ 'component-blog-item.css' | asset_url | stylesheet_tag }}
<style>
.section-header {
  display: flex;
  justify-content: space-between; /* Ensures the title and link are spaced apart to the edges */
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap; /* Allows wrapping but with better control */
}

.section-title {
  font-size: 24px; /* Font size of the title */
  color: var(--color-text-main);
  flex: 1 0 auto; /* Flex-grow is 1, flex-shrink is 0, flex-basis is auto */
}

.view-all-link {
  font-size: 16px;
  text-decoration: none;
  color: var(--color-accent);
  margin-left: auto; /* Pushes the link to the far right */
  white-space: nowrap; /* Prevents breaking into multiple lines */
}

.blog-item {
  flex: 1 1 20%;
  margin: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .blog-item {
    flex-basis: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .blog-item {
    flex-basis: 100%;
  }
  .section-header {
    flex-direction: column; /* Stack the title and link vertically */
    align-items: flex-start; /* Align items to the start on small screens */
  }
  .view-all-link {
    margin-left: 0; /* Reset margin on smaller screens for better alignment */
    margin-top: 10px; /* Adds space between title and link when stacked */
  }
}
</style>