.storyblok-paragraph,
p[textalign] {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #1f2937;
  font-size: 16px;
  font-weight: 400;
}

.storyblok-list-item p,
.storyblok-td p {
  margin-bottom: 0;
}

.storyblok-heading {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  display: block;
  letter-spacing: -0.02em;
}

.storyblok-heading:first-child {
  margin-top: 0;
}

.storyblok-h1,
h1[textalign] {
  font-size: 54px;
  color: #111827;
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.storyblok-h2,
h2[textalign] {
  font-size: 34px;
  color: #111827;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.storyblok-h3,
h3[textalign] {
  font-size: 22px;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.storyblok-h4,
h4[textalign] {
  font-size: 20px;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  font-weight: 600;
}

.storyblok-h5,
h5[textalign] {
  font-size: 18px;
  color: #374151;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.storyblok-h6,
h6[textalign] {
  font-size: 16px;
  color: #374151;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.storyblok-strong,
strong[class*='storyblok'] {
  font-weight: 600;
  color: #111827;
}

.storyblok-em {
  font-style: italic;
  color: #374151;
}

.storyblok-underline {
  text-decoration: underline;
  text-decoration-color: #3b82f6;
  text-underline-offset: 3px;
}

.storyblok-link,
a[class*='storyblok'] {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.storyblok-link:hover,
a[class*='storyblok']:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.storyblok-hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 3rem 0;
}

.storyblok-list,
ul[class*='storyblok'],
ol[class*='storyblok'] {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.storyblok-list.storyblok-ordered-list,
ol[class*='storyblok'] {
  counter-reset: item;
}

.storyblok-list-item,
li[class*='storyblok'] {
  margin-bottom: 0.875rem;
  line-height: 1.75;
  color: #1f2937;
  position: relative;
  padding-left: 1.5rem;
}

.storyblok-list:not(.storyblok-ordered-list) .storyblok-list-item::before,
ul[class*='storyblok'] li[class*='storyblok']::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.65em;
  width: 5px;
  margin-top: 0.2rem;
  height: 5px;
  background-color: #1f2937;
  border-radius: 50%;
}

.storyblok-list.storyblok-ordered-list .storyblok-list-item::before,
ol[class*='storyblok'] li[class*='storyblok']::before {
  counter-increment: item;
  content: counter(item) '.';
  position: absolute;
  left: 0;
  top: 0.05em;
  font-weight: 600;
  color: #1f2937;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  font-size: 0.95em;
}

.storyblok-table,
table[class*='storyblok'] {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 14px;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.storyblok-th,
th[class*='storyblok'] {
  background-color: #f9fafb;
  color: #111827;
  font-weight: 600;
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.storyblok-td,
td[class*='storyblok'] {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  line-height: 1.6;
  vertical-align: top;
}

.storyblok-tr:hover,
tr[class*='storyblok']:hover {
  background-color: #f9fafb;
  transition: background-color 0.15s ease;
}

.storyblok-tr:last-child .storyblok-td {
  border-bottom: none;
}

.storyblok-blockquote {
  border-left: 4px solid #3b82f6;
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background: #f0f9ff;
  border-radius: 8px;
  font-style: italic;
  color: #1e40af;
}

.storyblok-code-block {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 14px;
  line-height: 1.6;
  margin: 2.5rem 0;
}

.storyblok-code {
  background: #f3f4f6;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 12px;
  color: #dc2626;
}

.storyblok-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

span[data-type='emoji'] .storyblok-image,
span[data-type='emoji'] img {
  display: inline !important;
  margin: 0 0.15em !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 1.2em !important;
  height: 1.2em !important;
  vertical-align: -0.1em !important;
}

.storyblok-figure {
  margin: 2.5rem 0;
  text-align: center;
}

.storyblok-caption {
  margin-top: 1rem;
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
}

span[style*='color'] {
  color: inherit !important;
}

p[textalign] {
  text-align: left !important;
}

.prose > p:first-of-type,
.text-gray-800 > p:first-of-type {
  font-size: 18px;
  color: #1f2937;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.storyblok-h2 + .storyblok-paragraph,
h2 + p {
  margin-top: 1.5rem;
}

.storyblok-h3 + .storyblok-paragraph,
h3 + p {
  margin-top: 1rem;
}

.storyblok-table .storyblok-td:first-child,
table td:first-child {
  font-weight: 600;
  color: #111827;
}

@media (max-width: 768px) {
  .storyblok-h1,
  h1[textalign] {
    font-size: 36px;
    margin-bottom: 1.5rem;
  }

  .storyblok-h2,
  h2[textalign] {
    font-size: 28px;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }

  .storyblok-h3,
  h3[textalign] {
    font-size: 22px;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }

  .storyblok-h4,
  h4[textalign] {
    font-size: 20px;
    margin-top: 2rem;
  }

  .storyblok-paragraph,
  p[textalign] {
    font-size: 16px;
    margin-bottom: 1.25rem;
  }

  .storyblok-table,
  table[class*='storyblok'] {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .storyblok-th,
  .storyblok-td {
    padding: 0.75rem 1rem;
    min-width: 120px;
  }

  .storyblok-list-item,
  li[class*='storyblok'] {
    padding-left: 1.75rem;
  }

  .storyblok-blockquote {
    padding: 1rem 1.5rem;
    font-size: 16px;
  }
}

@media print {
  .storyblok-paragraph,
  .storyblok-list-item {
    color: #000;
  }

  .storyblok-heading {
    color: #000;
    page-break-after: avoid;
  }

  .storyblok-table {
    page-break-inside: avoid;
  }

  .storyblok-link {
    color: #3b82f6;
    text-decoration: underline;
  }
}

[textalign='null'],
[textalign='center'] {
  text-align: left;
}

span[style*='color'] a {
  color: #3b82f6 !important;
}

/* Blog CTA Styles */
.blog-cta-card {
  margin: 3rem 0;
  padding: 2.5rem;
  border-radius: 16px;
  border: 2px solid;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.blog-cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.blog-cta-emoji {
  font-size: 48px;
  margin-bottom: 1rem;
  line-height: 1;
}

.blog-cta-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.blog-cta-description {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 28px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white !important;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.blog-cta-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.blog-cta-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.blog-cta-button:hover .blog-cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .blog-cta-card {
    margin: 2rem 0;
    padding: 1.75rem 1.25rem;
  }

  .blog-cta-emoji {
    font-size: 36px;
  }

  .blog-cta-title {
    font-size: 20px;
    margin-bottom: 0.875rem;
  }

  .blog-cta-description {
    font-size: 15px;
    margin-bottom: 1.5rem;
  }

  .blog-cta-button {
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
}
