.page-blog {
  color: #333333; /* Default text color for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--color-background); /* Ensures contrast with shared body background */
}

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

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-blog__hero-container {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for primary CTA */
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.page-blog__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 50px;
  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__about-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-blog__about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-blog__about-text {
  flex: 1;
  font-size: 1.1em;
  color: #333333;
}

.page-blog__about-text p {
  margin-bottom: 20px;
}

.page-blog__about-image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure minimum size */
}

.page-blog__about-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-blog__categories-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-blog__category-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__category-image {
  width: 100%;
  height: 250px; /* Consistent height for category images */
  object-fit: cover;
}

.page-blog__category-title {
  font-size: 1.5em;
  color: #000000;
  margin: 20px 0 10px;
  padding: 0 15px;
}

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

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

.page-blog__category-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
}

.page-blog__recent-posts-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.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: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__post-image {
  width: 100%;
  height: 220px; /* Consistent height for post thumbnails */
  object-fit: cover;
}

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
}

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

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

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

.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: #e0a53a;
}

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

.page-blog__cta-section .page-blog__section-title {
  color: #FFFFFF;
}

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-bottom: 20px;
}

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

.page-blog__cta-subtext {
  font-size: 1em;
  color: #CCCCCC;
}

.page-blog__cta-login-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-blog__cta-login-link:hover {
  color: #e0a53a;
  text-decoration: underline;
}

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

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

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

.page-blog__newsletter-input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid #CCCCCC;
  border-radius: 8px;
  font-size: 1em;
  color: #333333;
  background-color: #FFFFFF;
}

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

.page-blog__newsletter-button {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

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

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

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

  .page-blog__about-content {
    flex-direction: column;
  }

  .page-blog__about-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-blog__hero-section {
    min-height: 400px;
  }

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

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

  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }

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

  .page-blog__categories-grid,
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }

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

  .page-blog__newsletter-button {
    width: 100%;
  }

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

  .page-blog__about-image,
  .page-blog__category-image,
  .page-blog__post-image {
    width: 100%;
    height: auto; /* Allow height to adjust proportionally */
    min-height: 200px; /* Enforce minimum height for content images */
    object-fit: cover;
  }

  .page-blog__hero-image {
    min-height: 200px;
  }

  .page-blog__about-image-wrapper {
    min-width: unset;
  }

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

  .page-blog__post-image {
    height: 180px;
  }
}

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

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

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

  .page-blog__hero-button {
    padding: 10px 20px;
    font-size: 1em;
  }

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

  .page-blog__newsletter-form {
    gap: 10px;
  }
}