/* Custom Navigation Styles */
.primary-navigation ul {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .primary-navigation ul {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.primary-navigation ul li a {
  color: #000000;
  font-size: 1.125rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.primary-navigation ul li a:hover,
.primary-navigation ul li a:active,
.primary-navigation ul li.current-menu-item a {
  color: #dc2626; /* Tailwind red-600 */
}

/* Simplified Button Styles */
.btn-blue {
  display: inline-block;
  background-color: #2563eb; /* blue-600 */
  color: white !important;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  text-decoration: none !important;
}

.btn-blue:hover {
  background-color: #1d4ed8; /* blue-700 */
  color: white !important;
}

.btn-green {
  display: inline-block;
  background-color: #16a34a; /* green-600 */
  color: white !important;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  text-decoration: none !important;
}

.btn-green:hover {
  background-color: #15803d; /* green-700 */
  color: white !important;
}

/* Enhanced Content Styling */
.prose {
  color: #374151; /* text-gray-700 */
  line-height: 1.75;
  font-size: 1.125rem; /* text-lg */
}

/* Utility class for red text */
.text-red {
  color: #dc2626; /* Tailwind red-600 */
}

.prose p {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

.prose h1 {
  margin-top: 1em;
  margin-bottom: 1em;
  font-weight: 600;
  line-height: 2.25;
  color: #dc2626; /* Tailwind red-600 */
  font-size: 2.5rem !important; /* Larger than text-4xl */
}

.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 600;
  line-height: 1.25;
}

.prose img, .prose figure {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose a {
  color: #2563eb; /* blue-600 */
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #1d4ed8; /* blue-700 */
}

.prose ul, .prose ol {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose blockquote {
  border-left: 4px solid #e5e7eb; /* gray-200 */
  padding-left: 1em;
  font-style: italic;
  margin: 1.5em 0;
}

/* Content container spacing and float clearing */
.bg-white.rounded-lg.shadow-lg {
  margin-bottom: 2rem;
  overflow: hidden; /* Contains floated elements */
}

/* Alternative clearfix approach */
.bg-white.rounded-lg.shadow-lg::after {
  content: "";
  display: table;
  clear: both;
}

/* WordPress Image Alignment Classes */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
img.aligncenter,
figure.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
  clear: both;
}

.alignright,
img.alignright,
figure.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft,
img.alignleft,
figure.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

/* Enhanced prose-specific alignment */
.prose .alignright,
.prose img.alignright,
.prose figure.alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
  max-width: 50%;
}

.prose .alignleft,
.prose img.alignleft,
.prose figure.alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
  max-width: 50%;
}

.prose .aligncenter,
.prose img.aligncenter,
.prose figure.aligncenter {
  display: block;
  margin: 1em auto;
  clear: both;
  max-width: 100%;
}

.prose .alignnone,
.prose img.alignnone,
.prose figure.alignnone {
  margin: 0.5em 1.5em 1em 0;
  max-width: 100%;
}

/* Fix WordPress paragraph wrapping around floated images */
.prose p {
  overflow: visible;
}

/* Remove default margins on paragraph-wrapped images */
.prose p img {
  margin: 0;
}

/* Ensure paragraphs containing floated images don't break the flow */
.prose p:has(.alignleft),
.prose p:has(.alignright) {
  margin-bottom: 0;
}

/* Alternative approach for browsers that don't support :has() */
.prose p.alignleft,
.prose p.alignright {
  margin-bottom: 0;
}

/* Clear floats only when needed */
.prose .aligncenter + * {
  clear: both;
}

/* WordPress Caption Styling */
.prose .wp-caption {
  max-width: 100%;
  margin-bottom: 1.5em;
}

.prose .wp-caption img {
  margin-bottom: 0.5em;
}

.prose .wp-caption-text {
  font-size: 0.875rem;
  color: #6b7280; /* gray-500 */
  text-align: center;
  font-style: italic;
}

/* Footer Navigation Styling */
.footer-navigation ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-navigation ul li {
  margin-bottom: 0.75rem;
}

.footer-navigation ul li:last-child {
  margin-bottom: 0;
}

.footer-navigation ul li a {
  color: #f3f4f6; /* text-gray-100 */
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1rem;
}

.footer-navigation ul li a:hover {
  color: #dc2626; /* red-600 - matches header navigation */
}

/* Social Media Icons Hover Effects */
.social-icons a {
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
}
