/* Sermon Modal Styling */
.sermon-content {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  color: #374151;
  font-size: 16px;
}

.sermon-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.sermon-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.sermon-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.sermon-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
  hyphens: auto;
}

.sermon-content blockquote {
  border-left: 4px solid #3b82f6;
  background-color: #f8fafc;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 0 0.375rem 0.375rem 0;
}

.sermon-content blockquote p {
  margin-bottom: 0.5rem;
}

.sermon-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Style for all bold text */
.sermon-content strong {
  color: #1f2937;
  font-weight: 700;
}

/* Style specifically for paragraph markers */
.sermon-content p strong {
  /* Keep paragraph markers bold but not blue */
  color: inherit;
}

/* Base paragraph styling */
.sermon-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Style for paragraph markers */
.sermon-content .paragraph-marker {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d4ed8;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  margin-left: 0 !important;
  padding-left: 0 !important;
  border-left: none !important;
}

/* Style for content paragraphs - indented */
.sermon-content .content-paragraph {
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 3px solid #e5e7eb;
  text-align: justify;
}

/* Default paragraph style (fallback) */
.sermon-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* First paragraph and headings should not be indented */
.sermon-content p:first-child,
.sermon-content h1,
.sermon-content h2,
.sermon-content h3 {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

/* Style for highlighted search terms */
.sermon-content mark {
  background-color: #fef3c7;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-weight: 600;
  color: #92400e;
}

/* Biblical references styling */
.sermon-content strong {
  color: #1f2937;
  font-weight: 600;
}

.sermon-content em {
  color: #4b5563;
  font-style: italic;
}

/* Improved spacing for better readability */
.sermon-content > *:first-child {
  margin-top: 0;
}

.sermon-content > *:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sermon-content {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .sermon-content h1 {
    font-size: 1.5rem;
  }
  
  .sermon-content h2 {
    font-size: 1.25rem;
  }
  
  .sermon-content h3 {
    font-size: 1.125rem;
  }
}

/* Scrollbar styling for modal content */
.sermon-content::-webkit-scrollbar {
  width: 8px;
}

.sermon-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.sermon-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.sermon-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}