/* Custom styles for Verbum Dei website */

/* Article content styling */
.article-content {
  line-height: 1.8;
  color: #374151;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: #1f2937;
}

.article-content h1 {
  font-size: 2em;
}

.article-content h2 {
  font-size: 1.75em;
}

.article-content h3 {
  font-size: 1.5em;
}

.article-content p {
  margin-bottom: 1.25em;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5em auto;
  display: block;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25em;
  padding-left: 2em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content blockquote {
  border-left: 4px solid #dd8f00;
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
  color: #4b5563;
  background-color: #f3f4f6;
  padding: 1em;
  border-radius: 0.25rem;
}

.article-content a {
  color: #dd8f00;
  text-decoration: underline;
}

.article-content a:hover {
  color: #b87400;
}

.article-content code {
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.article-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.25em;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25em;
}

.article-content table th,
.article-content table td {
  border: 1px solid #e5e7eb;
  padding: 0.75em;
  text-align: left;
}

.article-content table th {
  background-color: #f3f4f6;
  font-weight: 600;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #dd8f00;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  nav,
  footer,
  .no-print {
    display: none;
  }

  .article-content {
    font-size: 12pt;
    line-height: 1.6;
  }

  .article-content a {
    text-decoration: none;
    color: #000;
  }

  .article-content a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* Loading animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
