/* style/blog.css */
.page-blog {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF; /* Light background as per shared.css body background */
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 20px;
  background-color: #000000; /* Dark section background for contrast */
  color: #FFFFFF; /* Light text for dark background */
  position: relative;
  overflow: hidden;
  min-height: 450px;
  justify-content: center;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  max-width: 100%; /* Ensure image is responsive */
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-blog__hero-title {
  font-size: 3em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for light button */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__hero-button:hover {
  background-color: #e0a73b; /* Slightly darker yellow on hover */
  transform: translateY(-3px);
}

.page-blog__latest-posts,
.page-blog__cta-section,
.page-blog__more-resources {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000; /* Main color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog__post-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-blog__post-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  filter: brightness(0.8); /* Slightly darken image for text readability */
}

.page-blog__post-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__post-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #000000; /* Dark text for titles */
}

.page-blog__post-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #FCBC45; /* Yellow on hover */
}

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  background-color: #000000; /* Dark button background */
  color: #FFFFFF; /* Light text */
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  background-color: #333333;
}

.page-blog__cta-section {
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* Light text */
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  justify-content: center;
}

.page-blog__cta-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.6);
}

.page-blog__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Yellow for emphasis */
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Yellow button */
  color: #000000; /* Dark text */
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  background-color: #e0a73b;
  transform: translateY(-3px);
}

.page-blog__resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-blog__resource-item {
  background-color: #F8F8F8; /* Light grey background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.page-blog__resource-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-blog__resource-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__resource-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__resource-title a:hover {
  color: #FCBC45;
}

.page-blog__resource-description {
  color: #666666;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px);
  }

  .page-blog__hero-title {
    font-size: 2.2em;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__post-image {
    height: 200px;
  }

  .page-blog__post-title {
    font-size: 1.3em;
  }

  .page-blog__cta-title {
    font-size: 2em;
  }

  .page-blog__cta-description {
    font-size: 1em;
  }

  .page-blog__hero-image,
  .page-blog__cta-image {
    max-width: 100%;
    height: auto;
  }

  .page-blog__posts-grid img,
  .page-blog__resources-grid img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  .page-blog__resource-item {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section,
  .page-blog__cta-section {
    padding: 30px 15px;
  }

  .page-blog__hero-title {
    font-size: 1.8em;
  }

  .page-blog__cta-title {
    font-size: 1.8em;
  }

  .page-blog__hero-button,
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}