/* css/blog.css */

/* Global Variables for D3F Colors */
:root {
  --d3f-blue: #0D407F;
  --d3f-green: #2C9A3D;
}

/* Blog Hero Section */
.blog-hero {
  position: relative;
  background: url("../images/hero1.png") no-repeat center center/cover;
  color: #fff;
  padding: 120px 0;
  text-align: center;
}
.blog-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay for text visibility */
  z-index: 1;
}
.blog-hero .container {
  position: relative;
  z-index: 2;
}
.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.blog-hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

/* No Blog Posts Section */
.no-blog-posts {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}
.no-blog-posts h2 {
  font-size: 2.5rem;
  color: var(--d3f-blue);
  margin-bottom: 20px;
}
.no-blog-posts p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Newsletter Form */
.newsletter-form {
  display: inline-block;
  text-align: left;
}
.newsletter-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}
.newsletter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.newsletter-fields input[type="email"] {
  padding: 10px;
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 250px;
}
.newsletter-fields button {
  padding: 10px 20px;
  background-color: var(--d3f-green);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.newsletter-fields button:hover {
  background-color: #249435;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2.5rem;
  }
  .blog-hero p {
    font-size: 1.1rem;
  }
  .newsletter-fields {
    flex-direction: column;
  }
}
