/* blog.css */

/* Blog Content Styling */
.blog-content {
  padding: 50px 20px;
  background-color: var(
    --color-background
  ); /* Maintain consistent background */
}

.blog-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left; /* Left-align text for better readability */
  color: var(--color-light-grey);

  /* Added Border */
  border: 2px solid var(--color-cta-bg); /* Vibrant red border */
  padding: 30px;
  border-radius: 10px;
  background-color: var(
    --color-dark-grey
  ); /* Different background for blog post */

  /* Box Shadow for Depth */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.blog-container h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center; /* Center the main blog title */
  color: var(--color-light-grey);
}

.post-date {
  font-size: 0.9rem;
  color: var(--color-lighter-grey);
  text-align: center;
  margin-bottom: 40px;
}

/* Blog Sections */
.blog-content section {
  margin-bottom: 40px;
}

.blog-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--color-cta-bg); /* Highlight section titles with CTA color */
}

/* Blog Images */
.blog-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
}

.image-description {
  font-size: 0.85rem;
  color: var(--color-description-grey);
  margin-bottom: 20px;
  text-align: center;
}

/* Conclusion Styling */
.blog-content article:last-of-type {
  margin-top: 40px;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
  .blog-container {
    padding: 20px;
    border: 1.5px solid var(--color-cta-bg); /* Slightly thinner border on tablet */
  }

  .blog-container h1 {
    font-size: 2rem;
  }

  .blog-content section {
    margin-bottom: 30px;
  }

  .blog-content h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .blog-container {
    padding: 15px;
    border: 1px solid var(--color-cta-bg); /* Thinner border on mobile */
    background-color: var(
      --color-medium-grey
    ); /* Slight color change for better contrast */
  }

  .blog-container h1 {
    font-size: 1.8rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-image {
    margin: 15px 0;
  }
}

/* Optional: Hover Effects on Blog Container */
.blog-container:hover {
  border-color: var(--color-cta-hover-bg); /* Darker red on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Typography Enhancements */
.blog-container p {
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Additional Styling for Links within Blog */
.blog-container a {
  color: var(--color-cta-bg);
  text-decoration: underline;
  transition: color 0.3s;
}

.blog-container a:hover {
  color: var(--color-cta-hover-bg);
}
