.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 */
  background-color: #FFFFFF;
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  padding: 0;
}

.page-blog__hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)); /* Overlay for text readability */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login color for emphasis */
  line-height: 1.2;
  max-width: 900px;
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #FFFFFF;
}

.page-blog__hero-actions {
  display: flex;
  gap: 20px;
}

.page-blog__button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  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; /* Login color */
  color: #000000; /* Main color */
  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: rgba(255, 255, 255, 0.2);
}

.page-blog__content-wrapper {
  max-width: 1200px;
  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__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px 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;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
  line-height: 1.3;
}

.page-blog__article-link {
  text-decoration: none;
  color: inherit;
}

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  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;
  margin-top: auto;
}

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

.page-blog__categories-section {
  background-color: #F0F0F0;
  padding: 60px 0;
  text-align: center;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  display: inline-block;
}

.page-blog__category-link {
  display: block;
  padding: 10px 25px;
  background-color: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 25px;
  text-decoration: none;
  color: #333333;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-blog__category-link:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-blog__featured-post-section {
  padding: 60px 0;
}

.page-blog__featured-card {
  display: flex;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-direction: row;
}

.page-blog__featured-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-blog__featured-content {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-blog__featured-title {
  font-size: 2em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-blog__featured-excerpt {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-blog__newsletter-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

.page-blog__newsletter-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__newsletter-input {
  padding: 12px 20px;
  border: 1px solid #FCBC45;
  border-radius: 5px;
  font-size: 1em;
  flex-grow: 1;
  background-color: #1a1a1a;
  color: #FFFFFF;
}

.page-blog__newsletter-input::placeholder {
  color: #aaaaaa;
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #FFFFFF;
}

.page-blog__cta-title {
  font-size: 3em;
  color: #000000;
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.3em;
  color: #555555;
  margin-bottom: 40px;
}

.page-blog__cta-actions {
  display: flex;
  justify-content: center;
  gap: 25px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.2em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__featured-card {
    flex-direction: column;
  }
  .page-blog__featured-image,
  .page-blog__featured-content {
    width: 100%;
  }
  .page-blog__featured-content {
    padding: 30px;
  }
  .page-blog__featured-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__newsletter-input,
  .page-blog__newsletter-form .page-blog__button {
    width: 100%;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
  .page-blog__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  /* Ensure all content area images are responsive and do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__featured-image {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__featured-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}