.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); /* Ensure content is not hidden by fixed header */
}

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

.page-blog__hero-section {
  background-color: #f5f5f5;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  max-width: 80%;
  z-index: 10;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  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__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 0 10px;
}

.page-blog__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

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

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

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  color: #555555;
}

.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-blog__article-card {
  background-color: #f9f9f9;
  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;
}

.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: 225px;
  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;
  line-height: 1.3;
}

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

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

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

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

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

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

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

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #000000;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-blog__category-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-blog__category-name {
  font-size: 1.1em;
}

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

.page-blog__featured-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

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

.page-blog__featured-content {
  padding: 40px;
  width: 40%;
}

.page-blog__featured-title {
  font-size: 2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-blog__featured-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 30px;
  max-height: 300px; /* Limit height for long content */
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-blog__read-more--featured {
  font-size: 1.1em;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #FCBC45;
  color: #000000;
  transition: background-color 0.3s ease;
}

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

.page-blog__cta-section {
  background-color: #000000; /* Main color for CTA */
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-blog__cta-content {
  max-width: 900px;
}

.page-blog__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

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

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

.page-blog__newsletter-input {
  padding: 12px 20px;
  border: 1px solid #cccccc;
  border-radius: 50px;
  font-size: 1em;
  width: 300px;
  max-width: 80%;
}

.page-blog__newsletter-button {
  padding: 12px 25px;
  background-color: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-blog__newsletter-button:hover {
  background-color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .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-excerpt {
    max-height: none; /* Remove height limit on smaller screens */
  }
}

@media (max-width: 768px) {
  /* Ensure all images in content areas are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }

  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 0 5px;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__articles-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__featured-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__newsletter-input {
    width: 100%;
    max-width: 300px;
  }
  .page-blog__newsletter-button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding: 40px 0;
  }
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__featured-content {
    padding: 20px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.9em;
  }
  .page-blog__article-image,
  .page-blog__category-image {
    height: 180px; /* Adjust height for smaller screens */
  }
}