.page-blog {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* White background */
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

.page-blog__hero-section {
  background-color: #000000; /* Main color as hero background */
  color: #FFFFFF; /* White text for dark background */
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  overflow: hidden;
}

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

.page-blog__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text for light button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-blog__cta-button:hover {
  background-color: #e0a53b;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
}

.page-blog__introduction-section,
.page-blog__why-read-section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 30px;
}

.page-blog__text-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__text-link:hover {
  color: #e0a53b;
}

.page-blog__latest-posts-section,
.page-blog__featured-articles-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-blog__post-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;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-10px);
  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;
  display: block;
}

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

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

.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-btn {
  display: inline-block;
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* White text */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  background-color: #333333;
}

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

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

.page-blog__category-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #000000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-blog__category-image {
  width: 100%;
  height: 200px; /* Min height 200px */
  object-fit: cover;
  display: block;
}

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

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

.page-blog__cta-bottom-content {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-blog__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__hero-description {
    font-size: 1.2em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__cta-bottom-title {
    font-size: 2.2em;
  }
  .page-blog__cta-bottom-description {
    font-size: 1.1em;
  }
  .page-blog__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Ensure content images do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-image,
  .page-blog__category-image {
    height: auto; /* Allow auto height for mobile responsiveness */
    min-height: 200px; /* Maintain minimum height */
  }
}

@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.5em;
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.4em;
  }
  .page-blog__cta-bottom-title {
    font-size: 1.8em;
  }
}