/* style/blog.css */
.page-blog {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px);
  background-color: #FFFFFF;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__hero-section {
  background-color: #000000; /* Black background for hero */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FCBC45;
}

.page-blog__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-blog__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

.page-blog__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__button--primary:hover {
  background-color: #E0A030;
  border-color: #E0A030;
}

.page-blog__button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-blog__button--secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-blog__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__button--cta:hover {
  background-color: #E0A030;
  border-color: #E0A030;
}

.page-blog__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 60px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-blog__latest-articles,
.page-blog__categories,
.page-blog__call-to-action,
.page-blog__featured-posts,
.page-blog__newsletter,
.page-blog__about {
  padding: 80px 0;
}

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

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

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

.page-blog__article-image,
.page-blog__featured-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title,
.page-blog__featured-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: bold;
}

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

.page-blog__article-title a:hover,
.page-blog__featured-title a:hover {
  color: #FCBC45;
}

.page-blog__article-excerpt,
.page-blog__featured-excerpt {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

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

.page-blog__category-card {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 40px 25px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-blog__category-card:hover {
  background-color: #222222;
}

.page-blog__category-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FCBC45;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: #F0F0F0;
  line-height: 1.5;
}

.page-blog__call-to-action {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 100px 20px;
}

.page-blog__cta-title {
  font-size: 3em;
  margin-bottom: 25px;
  font-weight: bold;
  color: #FCBC45;
}

.page-blog__cta-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: #F0F0F0;
}

.page-blog__newsletter {
  background-color: #F0F0F0;
  padding: 80px 0;
  text-align: center;
}

.page-blog__newsletter-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #000000;
  font-weight: bold;
}

.page-blog__newsletter-description {
  font-size: 1.1em;
  color: #555555;
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.page-blog__newsletter-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: 2px solid #CCCCCC;
  border-radius: 8px;
  font-size: 1em;
  min-width: 250px;
}

.page-blog__newsletter-input:focus {
  border-color: #FCBC45;
  outline: none;
}

.page-blog__button--subscribe {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-blog__button--subscribe:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-blog__about {
  background-color: #FFFFFF;
  padding: 80px 0;
}

.page-blog__about-text {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
  text-align: justify;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }

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

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

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px;
  }

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

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__button {
    width: 100%;
    max-width: 300px;
  }

  .page-blog__latest-articles,
  .page-blog__categories,
  .page-blog__call-to-action,
  .page-blog__featured-posts,
  .page-blog__newsletter,
  .page-blog__about {
    padding: 60px 0;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

  .page-blog__article-grid,
  .page-blog__category-grid,
  .page-blog__featured-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-title,
  .page-blog__featured-title {
    font-size: 1.3em;
  }

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

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

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

  .page-blog__newsletter-input {
    min-width: unset;
    width: 100%;
  }

  .page-blog__newsletter-form {
    flex-direction: column;
  }

  .page-blog__button--subscribe {
    width: 100%;
  }

  /* Ensure content images do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }

  .page-blog__article-image,
  .page-blog__featured-image {
    height: auto; /* Allow height to adjust for responsiveness */
    max-height: 250px; /* Optional: cap max height on mobile */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }

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

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