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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  z-index: 10;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FF6B00; /* Main brand color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FF6B00; /* Main brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

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

.page-blog__latest-posts,
.page-blog__categories,
.page-blog__cta-section,
.page-blog__about-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-blog__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #FF6B00; /* Main brand color */
  margin-bottom: 15px;
}

.page-blog__section-subtitle {
  font-size: 1.2em;
  color: #555555;
}

.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 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
}

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

.page-blog__post-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #333333;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #00A86B; /* Auxiliary brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #00764b;
}

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

.page-blog__read-more {
  display: inline-block;
  color: #FF6B00; /* Main brand color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-blog__read-more:hover {
  color: #e65c00;
  text-decoration: underline;
}

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

.page-blog__category-card {
  background-color: #00A86B; /* Auxiliary brand color */
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__category-card:hover {
  background-color: #00764b;
  transform: translateY(-5px);
}

.page-blog__category-title {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.page-blog__category-description {
  font-size: 1em;
  opacity: 0.9;
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #FF6B00, #e65c00);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  border-radius: 15px;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-title {
  font-size: 3em;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-blog__cta-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  opacity: 0.9;
}

.page-blog__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3em;
  margin: 0 15px;
}

.page-blog__cta-button--secondary {
  background-color: #00A86B; /* Auxiliary brand color */
  margin-left: 15px;
}

.page-blog__cta-button--secondary:hover {
  background-color: #00764b;
}

.page-blog__about-content p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description,
  .page-blog__cta-description {
    font-size: 1.2em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__post-title {
    font-size: 1.4em;
  }
  .page-blog__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    margin-bottom: 30px;
  }
  .page-blog__hero-image {
    height: 400px;
  }
  .page-blog__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__section-subtitle {
    font-size: 1em;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-image {
    height: 200px; /* Ensure images are not too small */
  }
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__cta-section {
    padding: 60px 20px;
    margin: 40px auto;
  }
  .page-blog__cta-title {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-blog__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-blog__cta-button--large,
  .page-blog__cta-button--secondary {
    display: block;
    width: calc(100% - 30px);
    margin: 15px auto;
  }
  /* Ensure content area images do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-card img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-image {
    height: 300px;
  }
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button--large,
  .page-blog__cta-button--secondary {
    font-size: 0.9em;
  }
  .page-blog__post-image {
    height: 180px; /* Still maintains minimum size, adjusts with max-width:100% */
  }
}