/* Article Title Styling */
.article-header {
  background: none !important;
  padding: 0 !important;
  margin: 0 0 2rem 0;
  border: none !important;
  box-shadow: none !important;
}

.article-header h1 {
  color: #5b3a2e !important;
  font-size: 2.2rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.article-subtitle {
  color: #7b3f00;
  font-style: italic;
  margin: 0 0 1.5rem 0;
  display: block;
}

.article-footer {
  background: none !important;
  padding: 2rem 0 1rem 0 !important;
  margin: 3rem 0 0 0;
  border: none !important;
  border-top: 1px solid #e0d6cc !important;
  box-shadow: none !important;
}

.related-content {
  background: none !important;
  padding: 2rem 0 1rem 0 !important;
  margin: 3rem 0 0 0;
  border: none !important;
  border-top: 1px solid #e0d6cc !important;
  box-shadow: none !important;
}

/* Remove all box shadows and borders from article elements */
.article-content,
.article-meta,
.article-image,
.article-tags,
.article-share,
.related-article {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 1.5rem 0 !important;
}

/* Ensure no background colors are applied */
.reflection-article,
.content-wrapper,
main,
article,
aside {
  background: none !important;
}

/* Remove borders from images and other elements */
.article-image img,
.related-article img {
  border: none !important;
  box-shadow: none !important;
}

/* Clean up related articles */
.related-article {
  padding: 0 !important;
  margin: 0 0 2rem 0 !important;
}

.related-article-content {
  padding: 0 !important;
}

.related-article h4 {
  margin: 0 0 0.5rem 0 !important;
}

.related-article p {
  margin: 0 !important;
}

/* Clean up tags */
.article-tags a {
  background: none !important;
  border: 1px solid #e0d6cc !important;
  padding: 0.3rem 0.8rem !important;
  margin: 0 0.5rem 0.5rem 0 !important;
  border-radius: 3px !important;
  display: inline-block !important;
}

/* Clean up share buttons */
.article-share a {
  background: none !important;
  border: 1px solid #e0d6cc !important;
  margin: 0 0.5rem 0.5rem 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  transition: all 0.2s ease;
}

.article-share a:hover {
  background: #f5f0e9 !important;
  transform: none !important;
}

/* Header Styling */
header {
  background-color: #5b3a2e;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
  color: #fff;
}

header p {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
  color: #fff;
}

/* Navigation styles */
.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
}

.nav-links a {
  color: #3b2f2f;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #5b3a2e;
  background-color: rgba(91, 58, 46, 0.1);
  text-decoration: none;
}

/* Mobile menu styles */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid #3b2f2f;
  color: #3b2f2f;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin: 0.5rem auto;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #e5d3c0;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
}

/* Fix for dark backgrounds */
.site-header,
.footer-content,
.footer-section,
.footer-section a,
.related-article,
.article-tags,
.article-tags a,
.article-share,
.article-share a,
.related-content h3 {
  color: #ffffff !important;
}

/* Ensure proper contrast in dark sections */
.footer-section h3,
.related-content h3 {
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Style for related articles in dark sections */
.related-article h4,
.related-article p {
  color: #ffffff !important;
}

.related-article {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Fix for dark titles */
.article-header h1,
.article-header h2,
.article-header h3 {
  color: #5b3a2e !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 1rem 0 !important;
}

.article-header h1 {
  font-size: 2.2rem !important;
  line-height: 1.2;
  margin-bottom: 1.5rem !important;
}

.article-subtitle {
  color: #7b3f00 !important;
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 2rem !important;
  display: block;
}

/* Reflections Page Specific Styles */
.reflection-article {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.7;
  color: #3b2f2f;
  font-family: 'Crimson Pro', serif;
}

.article-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0d6cc;
}

.article-meta {
  color: #5b3a2e;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.article-header h1 {
  font-size: 1.8rem;
  color: #5b3a2e;
  margin: 0.5rem 0;
  line-height: 1.3;
  font-weight: 500;
}

.article-subtitle {
  color: #7b3f00;
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.article-intro {
  font-size: 1.1rem;
  color: #4a3028;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.article-image {
  margin: 2rem 0;
  text-align: center;
}

.article-image {
  margin: 2.5rem 0;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-image figcaption {
  font-style: italic;
  color: #7b3f00;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #3b2f2f;
}

.article-content h2 {
  color: #5b3a2e;
  margin: 2.5rem 0 1.2rem;
  font-size: 1.5rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0d6cc;
}

.article-content h3 {
  color: #7b3f00;
  margin: 2rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: #3b2f2f;
}

.article-content p.intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a3028;
  font-style: italic;
}

.article-content ol,
.article-content ul {
  margin: 1.2rem 0 1.2rem 1.5rem;
  padding-left: 1rem;
}

.article-content li {
  margin-bottom: 0.7rem;
  color: #3b2f2f;
}

.article-content blockquote {
  border: none;
  padding: 0;
  margin: 2rem 0;
  background: none;
  font-style: italic;
  color: #4a3028;
  position: relative;
}

.article-content blockquote::before {
  content: '\201C';
  font-size: 3.5rem;
  color: #d4c0d0;
  position: absolute;
  left: -1rem;
  top: -0.5rem;
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.7;
}

.article-content blockquote footer {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-size: 0.9rem;
  color: #7b3f00;
  text-align: right;
  padding-right: 1rem;
}

.article-content blockquote cite {
  font-style: normal;
  font-weight: 500;
}

.article-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e0d6cc;
}

.article-tags {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.article-tags span {
  color: #5b3a2e;
  font-weight: 500;
  margin-right: 0.5rem;
}

.article-tags a {
  display: inline-block;
  background-color: #f0e9e0;
  color: #5b3a2e;
  padding: 0.3rem 0.9rem;
  border-radius: 15px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  transition: all 0.3s ease;
}

.article-tags a:hover {
  background-color: #d4c0d0;
  color: #fff;
}

.article-share {
  margin-top: 2rem;
}

.article-share {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0d6cc;
  text-align: center;
}

.article-share span {
  display: block;
  margin-bottom: 1rem;
  color: #5b3a2e;
  font-weight: 500;
  font-size: 0.95rem;
}

.article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #f0e9e0;
  color: #5b3a2e;
  margin: 0 0.3rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e0d6cc;
}

.article-share a:hover {
  background-color: #5b3a2e;
  color: #fff;
  transform: translateY(-2px);
}

/* Related Content */
.related-content {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e0d6cc;
}

.related-content h3 {
  color: #5b3a2e;
  margin-bottom: 1.8rem;
  font-size: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.8rem;
}

.related-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: #c9b8a8;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.related-article {
  border: 1px solid #e0d6cc;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-color: #c9b8a8;
}

.related-article img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #f0e9e0;
}

.related-article-content {
  padding: 1.2rem 1.2rem 1.5rem;
}

.related-article h4 {
  margin: 0 0 0.6rem;
  color: #5b3a2e;
  font-size: 1.1rem;
  line-height: 1.4;
}

.related-article p {
  margin: 0;
  color: #4a3028;
  font-size: 0.95rem;
  line-height: 1.6;
}

.related-article a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .reflection-article {
    padding: 0 0.5rem;
  }
  
  .article-header h1 {
    font-size: 1.6rem;
  }
  
  .article-content {
    font-size: 1.05rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .related-article {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Print Styles */
@media print {
  .article-share,
  .related-content,
  .article-footer {
    display: none;
  }
  
  .reflection-article {
    padding: 0;
    max-width: 100%;
  }
  
  .article-content {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .article-header h1 {
    font-size: 18pt;
  }
  
  .article-content h2 {
    font-size: 14pt;
    page-break-after: avoid;
  }
  
  .article-image {
    page-break-inside: avoid;
  }
  
  .article-image img {
    max-width: 60%;
    display: block;
    margin: 0 auto;
  }
  
  @page {
    margin: 1.5cm;
  }
}
