/* Blog Page Styles */

.blog-post-content {
  max-width: 75%;
  margin: 0 auto;
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2c2c3a;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content h2 {
  font-family: Onest, sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: #0c0020;
  border-left: 3px solid #149189;
  padding-left: 1.25rem;
}

.blog-post-content h3 {
  font-family: Onest, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #0c0020;
}

.blog-post-content .subheading {
  font-size: 1.2rem;
  line-height: 1.85;
  color: #2c2c3a;
  background: linear-gradient(135deg, rgba(20, 145, 137, 0.06), rgba(120, 200, 192, 0.04));
  border-left: 3px solid #149189;
  padding: 1.75rem 2rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 2.5rem;
}

.blog-post-content strong {
  color: #0c0020;
  font-weight: 600;
}

.blog-post-content em {
  color: #149189;
  font-style: italic;
}

.blog-post-content sup a {
  color: #149189;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.blog-post-content sup a:hover {
  color: #0d7a73;
  text-decoration: underline;
}

.blog-post-content .muted {
  background: rgba(20, 145, 137, 0.04);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid #149189;
  color: #4a5568;
  font-style: italic;
  margin-top: 3rem;
}

/* Blockquote */
.quote-block {
  border-left: 3px solid #149189;
  background: rgba(20, 145, 137, 0.04);
  padding: 1.4rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  color: #3a3a4a;
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
}

/* Ordered lists */
.list-ordered {
  margin: 1rem 0 1.5rem;
  padding-left: 0;
  list-style: none;
  counter-reset: blog-counter;
}

.list-ordered li {
  counter-increment: blog-counter;
  padding: 0.55rem 0 0.55rem 2.75rem;
  position: relative;
  border-bottom: 1px solid rgba(12, 0, 32, 0.06);
  line-height: 1.7;
}

.list-ordered li:last-child {
  border-bottom: none;
}

.list-ordered li::before {
  content: counter(blog-counter);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.65rem;
  height: 1.65rem;
  background: #149189;
  color: #fff;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Unordered lists */
.list-unordered {
  margin: 1rem 0 1.5rem;
  padding-left: 0;
  list-style: none;
}

.list-unordered li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  line-height: 1.7;
}

.list-unordered li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.95rem;
  width: 7px;
  height: 7px;
  background: #149189;
  border-radius: 50%;
}

/* Default list styling (non-classed ul/ol) */
.blog-post-content ul:not(.list-unordered):not(.list-ordered) {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
  list-style: disc;
}

.blog-post-content ul:not(.list-unordered):not(.list-ordered) li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.blog-post-content ol:not(.list-ordered) {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.blog-post-content ol:not(.list-ordered) li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

/* Utility classes */
.text-color_gray {
  color: #6b7280;
}

.margin-vertical_medium {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.margin-vertical_large {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Blog images */
.blog-post-content .image_blog {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* References */
.refs {
  max-width: 75%;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 2px solid rgba(12, 0, 32, 0.1);
}

.refs h2 {
  font-family: Onest, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #0c0020;
}

.refs ol {
  list-style: none;
  counter-reset: ref-counter;
  padding-left: 0;
}

.refs ol li {
  counter-increment: ref-counter;
  margin-bottom: 1.25rem;
  padding-left: 3rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #4b5563;
}

.refs ol li::before {
  content: "[" counter(ref-counter) "]";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #149189;
  background: rgba(20, 145, 137, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.refs ol li em {
  color: #374151;
  font-weight: 500;
}

.refs ol li a {
  color: #149189;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}

.refs ol li a:hover {
  color: #0d7a73;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .blog-post-content {
    max-width: 100%;
    font-size: 1rem;
  }

  .blog-post-content h2 {
    font-size: 1.6rem;
  }

  .blog-post-content h3 {
    font-size: 1.1rem;
  }

  .blog-post-content .subheading {
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
  }

  .quote-block {
    padding: 1.1rem 1.4rem;
    font-size: 1.05rem;
  }

  .refs {
    max-width: 100%;
  }
}
