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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px; /* Minimum height for hero section */
  background: linear-gradient(135deg, #000000 0%, #333333 100%); /* Fallback dark background */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
  z-index: 1;
}

.page-blog__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-blog__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.page-blog__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text */
  border: 2px solid #FCBC45;
}

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

.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__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  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__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__articles-grid {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #f8f8f8;
}

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

.page-blog__article-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-blog__article-content {
  padding: 25px;
}

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__article-title a {
  color: #000000;
  text-decoration: none;
}

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

.page-blog__article-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-blog__button--read-more:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-blog__featured-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-blog__feature-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 60px;
  gap: 30px;
}

.page-blog__feature-item:last-child {
  margin-bottom: 0;
}

.page-blog__feature-item--reverse {
  flex-direction: row-reverse;
}

.page-blog__feature-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensure image fills its flex container */
  height: auto; /* Maintain aspect ratio */
}

.page-blog__feature-content {
  flex: 1 1 50%;
  min-width: 300px;
}

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

.page-blog__button--outline {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
  padding: 10px 20px;
  margin-top: 20px;
}

.page-blog__button--outline:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  color: #000000;
}

.page-blog__call-to-action {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 60px 20px;
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-blog__call-to-action .page-blog__section-title {
  color: #FFFFFF;
}

.page-blog__call-to-action .page-blog__section-title::after {
  background-color: #FCBC45;
}

.page-blog__call-to-action .page-blog__paragraph {
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

.page-blog__button--large {
  padding: 15px 35px;
  font-size: 1.1em;
}

.page-blog__newsletter-section {
  padding-top: 40px;
  padding-bottom: 60px;
  text-align: center;
  background-color: #f0f0f0;
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-blog__newsletter-input {
  padding: 12px 20px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-blog__button {
    width: 100%;
  }

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

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

  .page-blog__feature-item {
    flex-direction: column;
  }

  .page-blog__feature-item--reverse {
    flex-direction: column;
  }

  .page-blog__feature-image {
    min-width: unset;
  }

  .page-blog__feature-title {
    font-size: 1.7em;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
  }

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

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

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

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

  /* Content area images must not be smaller than 200px */
  .page-blog__article-image,
  .page-blog__feature-image {
    min-width: 200px;
    min-height: 200px;
  }
}

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

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

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

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

  .page-blog__feature-title {
    font-size: 1.5em;
  }
}