/*
 * Blog-tartalmi alapstílusok.
 * A bejegyzés HTML-je a .blog-content konténerbe kerül, ezért ezek a szabályok
 * nem befolyásolják az oldal navigációját, láblécét vagy más komponenseit.
 */
.blog-content {
  color: #244331;
  font-size: 1.125rem;
  line-height: 1.8;
}

.blog-content > :first-child,
.blog-content article > :first-child {
  margin-top: 0;
}

.blog-content p {
  margin: 1.25rem 0;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  color: #092f20;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  scroll-margin-top: 6.5rem;
}

.blog-content h2 {
  margin: 3.25rem 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.blog-content h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.blog-content h4 {
  margin: 2rem 0 0.5rem;
  font-size: 1.2rem;
}

.blog-content ul,
.blog-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.blog-content ul {
  list-style: disc;
}

.blog-content ol {
  list-style: decimal;
}

.blog-content li {
  padding-left: 0.35rem;
}

.blog-content li + li {
  margin-top: 0.55rem;
}

.blog-content li::marker {
  color: #38694a;
  font-weight: 800;
}

.blog-content li > ul,
.blog-content li > ol {
  margin: 0.55rem 0 0;
}

.blog-content a:not(.cta-button) {
  color: #2d533c;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: #70a17f;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.blog-content a:not(.cta-button):hover {
  color: #092f20;
  text-decoration-color: currentColor;
}

.blog-content a:focus-visible {
  border-radius: 0.15rem;
  outline: 3px solid #f2cd00;
  outline-offset: 3px;
}

.blog-content strong {
  color: #092f20;
  font-weight: 800;
}

.blog-content blockquote {
  margin: 2rem 0;
  border-left: 4px solid #70a17f;
  background: #f2f7f3;
  padding: 1.25rem 1.5rem;
  color: #2d533c;
  font-weight: 600;
}

.blog-content hr {
  margin: 2.75rem 0;
  border: 0;
  border-top: 1px solid #c5dccb;
}

.blog-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 0.25rem;
}

/* Használható a bejegyzések lezárásában: <a class="cta-button" ...>. */
.blog-content .cta-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  background: #244331;
  padding: 0.7rem 1.1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 6px hsl(0 0% 0% / 0.2);
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.blog-content .cta-button:hover {
  background: #092f20;
  box-shadow: 0 8px 16px hsl(146 51% 12% / 0.18);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .blog-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .blog-content h2 {
    margin-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-content a,
  .blog-content .cta-button {
    transition: none;
  }
}
