/* ==========================================================================
   Blog / Kunskapscenter Styles
   Matches the Notiscan website design system (cream bg, green CTA, black outlines)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Blog Listing Page
   -------------------------------------------------------------------------- */

.blog-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.blog-hero h1 {
  font-family: "Lexend", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #1e1f28;
  margin-bottom: 0.75rem;
}

.blog-hero p {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.15rem;
  color: #666;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* --------------------------------------------------------------------------
   Article Card (listing page)
   -------------------------------------------------------------------------- */

.blog-card {
  background: #fff;
  border: 2px solid #000;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 4px 4px 0 0 #000;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 #000;
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 2px solid #000;
}

.blog-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__tag {
  display: inline-block;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b9a42;
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-family: "Lexend", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e1f28;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card__excerpt {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  flex: 1;
}

.blog-card__meta {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.8rem;
  color: #999;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

/* --------------------------------------------------------------------------
   Article Page
   -------------------------------------------------------------------------- */

.article-container {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.article-breadcrumb {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 2rem;
}

.article-breadcrumb a {
  color: #4b9a42;
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-breadcrumb span {
  margin: 0 0.4rem;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-tag {
  display: inline-block;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: #4b9a42;
  border: 2px solid #000;
  border-radius: 2rem;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-family: "Lexend", sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: #1e1f28;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.article-meta {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.9rem;
  color: #999;
}

.article-meta time {
  color: #666;
}

/* --------------------------------------------------------------------------
   Article Body Content
   -------------------------------------------------------------------------- */

.article-body h2 {
  font-family: "Lexend", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e1f28;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-body h3 {
  font-family: "Lexend", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e1f28;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.article-body p {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body a {
  color: #4b9a42;
  text-decoration: underline;
}

.article-body a:hover {
  color: #3d8b35;
}

.article-body blockquote {
  border-left: 4px solid #4b9a42;
  background: rgba(75, 154, 66, 0.06);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #444;
}

.article-body strong {
  font-weight: 600;
  color: #1e1f28;
}

/* --------------------------------------------------------------------------
   Callout / Tip Box
   -------------------------------------------------------------------------- */

.article-callout {
  background: #fff;
  border: 2px solid #000;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 3px 3px 0 0 #000;
}

.article-callout--tip {
  border-left: 6px solid #4b9a42;
}

.article-callout--warning {
  border-left: 6px solid #d69e2e;
}

.article-callout--danger {
  border-left: 6px solid #9b2c2c;
}

.article-callout__title {
  font-family: "Lexend", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e1f28;
}

.article-callout__body {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CTA Section (bottom of articles)
   -------------------------------------------------------------------------- */

.article-cta {
  background: #4b9a42;
  border: 2px solid #000;
  border-radius: 1rem;
  padding: 2rem;
  margin: 3rem 0 2rem;
  text-align: center;
  box-shadow: 4px 4px 0 0 #000;
}

.article-cta h3 {
  font-family: "Lexend", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.5rem;
}

.article-cta p {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1rem;
  color: #1a3a14;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.article-cta .cta-button {
  display: inline-block;
  background: #000;
  color: #fff;
  font-family: "Lexend", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.article-cta .cta-button:hover {
  background: #333;
}

/* --------------------------------------------------------------------------
   Related Articles
   -------------------------------------------------------------------------- */

.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #eee;
}

.related-articles h2 {
  font-family: "Lexend", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e1f28;
  margin-bottom: 1.5rem;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem 1rem 3rem;
  }

  .article-container {
    padding: 2rem 1rem 3rem;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .article-body h2 {
    font-size: 1.3rem;
  }

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

  .article-cta {
    padding: 1.5rem;
  }
}

@media (max-width: 479px) {
  .blog-hero {
    padding: 3rem 0 1.5rem;
  }

  .blog-hero h1 {
    font-size: 1.65rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }
}
