/* Adjust top spacing for fixed navbar */
.section.banner {
  padding-top: 120px !important;
  padding-bottom: 2rem !important;
}

/* Reduce container spacing */
.section.banner .base-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Reduce home banner title margins */
.home-banner-title {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Target the blog detail meta and heading */
.blog-detail-meta {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  font-size: 16px !important;
}

.blog-detail-author {
  color: #ff771b !important;
  font-weight: 500 !important;
}

.blog-detail-author::after {
  content: "•";
  margin-left: 0.5rem;
  color: #ffffff;
}

.blog-detail-date {
  color: #ffffff !important;
  font-weight: 400 !important;
}

.heading {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-align: center !important;
}

/* Reduce section spacing */
.section {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Blog Hero Image */
.blog-hero-image {
  max-width: 900px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.blog-content-hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.blog-content-hero-image:hover {
  transform: translateY(-2px);
}

/* Blog Post Content Styling */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #ffffff;
  font-size: 18px;
  background-color: transparent;
}

.blog-content h1 {
  font-size: 2.75rem;
  font-weight: 600;
  margin: 2rem 0 1.5rem 0;
  line-height: 1.2;
  color: #ffffff;
}

.blog-content h2 {
  font-size: 2.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
  color: #ffffff;
  border-bottom: 2px solid #ff771b;
  padding-bottom: 0.5rem;
}

.blog-content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  line-height: 1.4;
  color: #ffffff;
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem 0;
  line-height: 1.4;
  color: #ffffff;
}

.blog-content p {
  margin: 0 0 1.25rem 0;
  font-size: 18px;
  line-height: 1.8;
  color: #e0e0e0;
}

.blog-content p:last-child {
  margin-bottom: 0;
}

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

.blog-content li {
  margin: 0.5rem 0;
  line-height: 1.7;
  font-size: 18px;
  color: #e0e0e0;
}

.blog-content li::marker {
  color: #ff771b;
}

.blog-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid #ff771b;
  background-color: rgba(255, 119, 27, 0.1);
  font-style: italic;
  color: #f0f0f0;
}

.blog-content em {
  font-style: italic;
  color: #f0f0f0;
  font-size: 1.1em;
  display: block;
  margin: 1.5rem 0;
  text-align: center;
  padding: 1rem 2rem;
  background-color: rgba(255, 119, 27, 0.1);
  border-radius: 8px;
}

.blog-content strong {
  font-weight: 600;
  color: #ffffff;
}

.blog-content a {
  color: #ff771b;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.blog-content a:hover {
  border-bottom-color: #ff771b;
}

/* First paragraph styling */
.blog-content p:first-child {
  font-size: 20px;
  font-weight: 500;
  color: #cccccc;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #555;
}

/* Spacing improvements for specific sections */
.blog-content h3 + p {
  margin-top: 0.75rem;
}

.blog-content h3 + ul {
  margin-top: 0.75rem;
}

.blog-content ul + p {
  margin-top: 1.25rem;
}

.blog-content p + h3 {
  margin-top: 2rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .section.banner {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }
  
  .section {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }
  
  .blog-hero-image {
    margin: 0 1rem 1.5rem 1rem;
  }
  
  .blog-content-hero-image {
    border-radius: 8px;
  }
  
  .blog-content {
    font-size: 15px;
    padding: 0 1rem;
  }
  
  .blog-content h1 {
    font-size: 2rem;
  }
  
  .blog-content h2 {
    font-size: 1.75rem;
    margin: 1.5rem 0 0.75rem 0;
  }
  
  .blog-content h3 {
    font-size: 1.35rem;
    margin: 1.25rem 0 0.5rem 0;
  }
  
  .blog-content ul, .blog-content ol {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
  }
  
  .blog-content li {
    margin: 0.3rem 0;
  }
}

/* Social Sharing Section */
.social-sharing-section {
  border-top: 1px solid #555;
  padding: 2rem 0 0.25rem 0 !important;
}

.social-sharing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.social-sharing-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

.social-sharing-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #ff771b;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Recent Posts Section */
.recent-posts-section {
  padding: 0.5rem 0 3rem 0 !important;
}

.recent-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.recent-posts-title {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.view-more-button {
  background-color: #ff771b;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-more-button:hover {
  background-color: #e66a17;
  transform: translateY(-2px);
}

.recent-posts-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.recent-post-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.recent-post-item:hover {
  transform: translateY(-5px);
}

.recent-post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recent-post-content {
  padding: 1.5rem;
}

.recent-post-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.recent-post-excerpt {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.recent-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.recent-post-category {
  background-color: #ff771b;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 500;
}

/* Mobile responsiveness for new sections */
@media (max-width: 768px) {
  .social-sharing {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .recent-posts-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .recent-posts-title {
    font-size: 1.75rem;
  }
  
  .recent-posts-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
