.page-blog {
  color: #ffffff; /* Light text on dark body background */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  min-height: 450px;
}

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

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

.page-blog__hero-title {
  font-size: 3.5rem;
  color: #FFD700; /* Accent color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-blog__hero-description {
  font-size: 1.25rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold accent for button */
  color: #1A202C; /* Dark text on gold button */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-blog__latest-posts-section,
.page-blog__cta-section,
.page-blog__categories-section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 2.5rem;
  color: #FFD700;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

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

.page-blog__post-card {
  background-color: #1A202C; /* Dark background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  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 12px 30px rgba(0, 0, 0, 0.7);
}

.page-blog__post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Enforce min image size */
}

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

.page-blog__post-title {
  font-size: 1.6rem;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 600;
}

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

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

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  margin-top: auto;
}

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

.page-blog__cta-section {
  background: linear-gradient(135deg, #1A202C, #0F141F);
  text-align: center;
  padding: 80px 20px;
}

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

.page-blog__cta-title {
  font-size: 3rem;
  color: #FFD700;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-blog__cta-description {
  font-size: 1.3rem;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 10px 20px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-blog__cta-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: none;
}

.page-blog__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

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

.page-blog__category-card {
  background-color: #1A202C;
  color: #FFD700;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Ensure category cards are not small */
  display: flex; /* For vertical centering of text */
  align-items: center;
  justify-content: center;
}

.page-blog__category-card:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3rem;
  }
  .page-blog__hero-description {
    font-size: 1.1rem;
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__cta-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 350px;
  }
  .page-blog__hero-content {
    padding: 30px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-blog__latest-posts-section,
  .page-blog__cta-section,
  .page-blog__categories-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-image {
    height: 200px;
  }
  .page-blog__post-title {
    font-size: 1.4rem;
  }
  .page-blog__post-excerpt {
    font-size: 0.95rem;
  }
  .page-blog__cta-title {
    font-size: 2rem;
  }
  .page-blog__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  .page-blog__cta-button {
    display: block;
    margin: 10px auto;
    width: 90%;
    max-width: 300px;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .page-blog__category-card {
    font-size: 1rem;
    padding: 15px;
  }
  /* Mobile specific image handling to prevent overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-card img, .page-blog__hero-section img {
    min-width: 200px; /* Ensure even small images are not too small */
    min-height: 200px;
  }
}