/* Content Block Display Styles */

/* Content Block - Main container */
.content-block {
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Container base styles */
.content-container {
  position: relative;
  margin-bottom: 8px;
}

.content-container:last-child {
  margin-bottom: 0;
}

.content-container-row {
    border-bottom:1px solid #ddd;
    padding-bottom:12px;
}

/* Markdown container */
.content-markdown {
  line-height: 1.6;
  color: #333;
}

.content-markdown { max-width: 720px; margin: 0 auto; }
.content-markdown h1 { font-size: 2.25rem; font-weight: 800; margin: 8px 0 28px 0; color: #002965; text-align: center; letter-spacing: -0.025em; line-height: 1.15; }
.content-markdown h2 { font-size: 1.4rem; font-weight: 600; margin: 0 0 10px 0; color: #002965; }
.content-markdown h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 8px 0; color: #002965; }
.content-markdown h4 { font-size: 1rem; font-weight: 600; margin: 0 0 6px 0; color: #002965; }
.content-markdown p { margin: 0 0 10px 0; }
.content-markdown p:last-child { margin-bottom: 0; }
.content-markdown ul, .content-markdown ol { margin: 0 0 10px 20px; padding: 0; }
.content-markdown li { margin-bottom: 4px; }
.content-markdown a { color: #2563eb; text-decoration: underline; text-decoration-color: rgba(37, 99, 235, 0.3); }
.content-markdown a:hover { color: #1d4ed8; text-decoration-color: rgba(29, 78, 216, 0.6); }
.content-markdown blockquote { border-left: 3px solid #3b82f6; margin: 0 0 10px 0; padding: 8px 12px; background: #f0f9ff; color: #1e40af; }
.content-markdown code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.content-markdown pre { background: #1f2937; color: #f9fafb; padding: 12px; border-radius: 6px; overflow-x: auto; margin: 0 0 10px 0; }
.content-markdown pre code { background: transparent; padding: 0; }
.content-markdown hr { border: none; border-top: 1px solid #e5e7eb; margin: 16px 0; }
.content-markdown table { width: 100%; border-collapse: collapse; margin: 0 0 10px 0; font-size: 0.9rem; }
.content-markdown thead { background: #f9fafb; border-bottom: 2px solid #e5e7eb; }
.content-markdown th { padding: 8px 12px; text-align: left; font-weight: 600; color: #374151; }
.content-markdown td { padding: 8px 12px; border-bottom: 1px solid #f3f4f6; }
.content-markdown tbody tr:hover { background: #f9fafb; }
.content-markdown ul { list-style-type: disc; }
.content-markdown ol { list-style-type: decimal; }
.content-markdown ul ul { list-style-type: circle; }
.content-markdown mark { background: #fef3c7; padding: 1px 4px; border-radius: 2px; }

/* HTML container */
.content-html {
  line-height: 1.6;
}

/* Image container */
.content-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.content-image-description {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 6px 0 0 0;
  font-style: italic;
}

/* Video container */
.content-video video {
  display: block;
  max-width: 100%;
  border-radius: 6px;
}

.content-video-description {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 6px 0 0 0;
  font-style: italic;
}

/* Button container */
.content-button-wrap {
  padding: 8px 0;
}

.content-button {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.content-button-primary {
  background: #002965;
  color: #fff;
}

.content-button-primary:hover {
  background: #003a8c;
  color: #fff;
}

.content-button-secondary {
  background: #f5f5f5;
  color: #374151;
  border: 1px solid #e0e0e0;
}

.content-button-secondary:hover {
  background: #e6f4ff;
  border-color: #d0d0d0;
}

.content-button-outline {
  background: transparent;
  color: #002965;
  border: 2px solid #002965;
}

.content-button-outline:hover {
  background: #002965;
  color: #fff;
}

.content-button-danger {
  background: #dc2626;
  color: #fff;
}

.content-button-danger:hover {
  background: #b91c1c;
  color: #fff;
}

.content-button-success {
  background: #16a34a;
  color: #fff;
}

.content-button-success:hover {
  background: #15803d;
  color: #fff;
}

.content-button-ghost {
  background: transparent;
  color: #2563eb;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-button-ghost:hover {
  color: #1d4ed8;
}

.content-button-dark {
  background: #1f2937;
  color: #fff;
}

.content-button-dark:hover {
  background: #111827;
  color: #fff;
}

/* Group container - horizontal row, stacks on mobile */
.content-group {
  display: flex;
  flex-direction: row;
  aligna-items: flex-start;
  gap: 12px;
}
.content-group .content-image, .content-group .content-video, .content-group .content-button-wrap {
    align-self: center;
}

.content-group > .content-container {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

/* Responsive: stack on mobile */
@media (max-width: 640px) {
  .content-group {
    flex-direction: column;
  }
}

/* Embed block styling */
.content-block-embed {
  margin: 0 auto;
}
