.page-blog {
  background-color: var(--secondary-color); /* White background as per color scheme */
  color: #333333; /* Dark text for contrast on light background */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-blog__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000; /* Black for titles */
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}

.page-blog__latest-posts-section {
  padding: 80px 0;
}

.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 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-blog__post-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

.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: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

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

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

.page-blog__category-card {
  background-color: #FFFFFF;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #000000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

.page-blog__category-description {
  font-size: 0.95em;
  color: #666666;
}

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

.page-blog__cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-blog__cta-content {
  flex: 1;
  text-align: left;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-blog__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

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

.page-blog__cta-image {
  flex: 0 0 500px; /* Fixed width for desktop */
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-blog__about-section {
  padding: 80px 0;
}

.page-blog__about-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #444444;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__cta-image {
    flex: 0 0 400px;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 20px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }
  .page-blog__latest-posts-section, .page-blog__categories-section, .page-blog__cta-section, .page-blog__about-section {
    padding: 50px 0;
  }
  .page-blog__posts-grid, .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__cta-container {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__cta-content {
    text-align: center;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-image {
    flex: none;
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
  }
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@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__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-blog__post-title {
    font-size: 1.3em;
  }
  .page-blog__post-image {
    height: 180px;
  }
}