/* ===============================
   START: Single Post Layout Styles
   =============================== */
/* Fix FOOTER Remove paragraph spacing */
.single.single-post .btSiteFooter p {
  margin-bottom: 0 !important;
}

/* Main Wrapper */
.single-post-wrapper {
  background: #fffef1 !important;
  padding: 60px !important;
}

/* Container: Main Content + Sidebar */
.single-post-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr 320px !important;
  gap: 60px !important;
  align-items: start !important;
}

/* MAIN CONTENT AREA */

.single-post-main {
  width: 100% !important;
}

.single-post-article {
  background: transparent !important;
}

/* Post Title */
.single-post-title {
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  color: #004130 !important;
  margin: 0 0 5px 0 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

/* Featured Image */
.single-post-featured-image {
  margin: 0 0 40px 0 !important;
  text-align: center !important;
}

.single-post-featured-image img {
  max-width: 100% !important;
  max-height: 550px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Post Content */
.single-post-content {
  color: #004631 !important;
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  margin-bottom: 40px !important;
}

.single-post-content p {
  margin-bottom: 1.5em !important;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  color: #004130 !important;
  font-weight: 600 !important;
  margin: 2em 0 1em 0 !important;
}

.single-post-content h2 {
  font-size: 1.8rem !important;
}

.single-post-content h3 {
  font-size: 1.5rem !important;
}

.single-post-content h4 {
  font-size: 1.3rem !important;
}

.single-post-content ul,
.single-post-content ol {
  margin: 1.5em 0 !important;
  padding-left: 2em !important;
  color: #004631 !important;
}

.single-post-content li {
  margin-bottom: 0.8em !important;
}

.single-post-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  margin: 2em 0 !important;
}

/* Gallery Items - Reduce Top/Bottom Margins */
.single-post-content .gallery {
  margin: 1em 0 !important;
}

.single-post-content .gallery-item {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

.single-post-content .gallery-icon {
  margin: 0 !important;
}

.single-post-content .gallery-icon img {
  margin: 0 !important;
  border-radius: 8px !important;
}


/* Post Content Blockquote */
.single-post-content blockquote {
  border-left: 4px solid #004130 !important;
  margin: 0.5em 0 !important;
  color: #004130 !important;
  font-style: italic !important;
  position: relative !important;
  background: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  font-size: 1rem !important;
  min-height: 0 !important;
  margin-bottom: 1.5em !important;
}

/* Remove the quote icon/pseudo-element */
.single-post-content blockquote:before {
  content: none !important;
  display: none !important;
}

.single-post-content blockquote:after {
  content: none !important;
  display: none !important;
}

/* Reset blockquote paragraph styles */
.single-post-content blockquote p {
  margin: 0 !important;
  padding: 0 !important;
  font-style: italic !important;
  color: #004130 !important;
}

/* Social Share Section - Centered */
.single-post-share {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 15px !important;
  padding: 40px 0 !important;
  text-align: center !important;
}

.share-label {
  font-weight: 600 !important;
  color: #004130 !important;
  font-size: 1rem !important;
  margin-bottom: 5px !important;
}

.share-icons {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
}

.share-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #004130 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  font-size: 1.1rem !important;
  border: 1px solid transparent !important;
}

.share-icon:hover {
  transform: translateY(-2px) !important;
}

.share-facebook:hover {
  color: #1877f2 !important;
}

.share-twitter:hover {
  color: #1da1f2 !important;
}

.share-pinterest:hover {
  color: #e60023 !important;
}

.share-linkedin:hover {
  color: #0077b5 !important;
}

.share-email:hover {
  color: #666 !important;
}

/* ===============================
   POST NAVIGATION (Previous/Next)
   =============================== */

.post-navigation {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 0 !important;
  border-top: 1px solid rgba(0, 65, 48, 0.15) !important;
  border-bottom: 1px solid rgba(0, 65, 48, 0.15) !important;
}

.nav-previous,
.nav-next {
  flex: 0 1 auto !important;
}

.nav-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #004130 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  transition: color 0.2s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.nav-link:hover {
  color: #e5b1a3 !important;
}

.nav-arrow {
  font-size: 1.2rem !important;
  line-height: 1 !important;
}

/* ===============================
   SIDEBAR
   =============================== */

.single-post-sidebar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 20px !important;
  align-self: start !important;
  height: fit-content !important;
}

.sidebar-section {
  margin-bottom: 40px !important;
}

.sidebar-title {
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  color: #004130 !important;
  margin: 0 0 30px 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Related Posts */
.related-posts-section {
  background: transparent !important;
}

.related-post-item {
  margin-bottom: 20px !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  padding-left: 15px !important;
  border-bottom: none !important;
  border-left: 3px solid rgba(0, 65, 48, 0.6) !important;
}

.related-post-item:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.related-post-title {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.related-post-title a {
  color: #004130 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.related-post-title a:hover {
  color: #e5b1a3 !important;
}

.related-post-date {
  font-size: 0.85rem !important;
  color: #004130 !important;
  margin: 5px 0 10px 0 !important;
  padding: 0 !important;
  font-weight: 400 !important;
}

.related-post-excerpt {
  font-size: 0.9rem !important;
  color: #004631 !important;
  line-height: 1.6 !important;
  margin-bottom: 12px !important;
}

.related-post-button {
  display: inline-block !important;
  padding: 4px 16px !important;
  background: #004130 !important;
  color: #fffef1 !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
  transition: all 0.18s ease !important;
  margin-bottom: 5px !important;
}

.related-post-button__arrow {
  margin-left: 8px !important;
  font-size: 1.4em !important;
  padding-bottom: 2px !important;
  line-height: 0 !important;
  display: inline-block !important;
  transform: scale(1.6) !important;
  transform-origin: center !important;
  transition: transform .18s ease !important;
}

.related-post-button:hover .related-post-button__arrow {
  transform: scale(1.6) translateX(4px) !important;
}

.related-post-button:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* Tablet */
@media (max-width: 992px) {
  .single-post-container {
    grid-template-columns: 1fr !important;
    gap: 50px !important;
  }
  
  .single-post-sidebar {
    position: static !important;
  }
  
  .single-post-title {
    font-size: 2rem !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .single-post-wrapper {
    padding: 40px 40px !important;
  }
  
  .single-post-title {
    font-size: 1.75rem !important;
  }
  
  .single-post-content {
    font-size: 1rem !important;
  }
  
  .single-post-featured-image img {
    max-height: 500px !important;
  }
  
  .share-icons {
    flex-wrap: wrap !important;
  }
  
  .share-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1rem !important;
  }
  
  .sidebar-title {
    font-size: 1.2rem !important;
  }
  
  .post-navigation {
    flex-direction: column !important;
    gap: 20px !important;
    text-align: center !important;
  }
  
  .nav-previous,
  .nav-next {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .single-post-wrapper {
    padding: 30px 25px !important;
  }
  
  .single-post-title {
    font-size: 1.5rem !important;
  }
  
  .single-post-featured-image img {
    max-height: 450px !important;
    border-radius: 8px !important;
  }
  
  .related-post-title {
    font-size: 1rem !important;
  }
  
  .related-post-excerpt {
    font-size: 0.85rem !important;
  }
  
  .nav-link {
    font-size: 0.85rem !important;
  }
}

/* ===============================
   END: Single Post Layout Styles
   =============================== */