.page-blog {
  color: #ffffff; /* Text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000000;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 900px;
  padding: 20px;
  z-index: 10;
}

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

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
  line-height: 1.5;
}

.page-blog__hero-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 0 10px;
}

.page-blog__hero-button--primary {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-blog__hero-button--secondary {
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #FCBC45;
}

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

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

.page-blog__latest-posts,
.page-blog__categories,
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #000000;
}

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

.page-blog__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 60px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__post-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  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 36px rgba(0, 0, 0, 0.6);
}

.page-blog__post-image {
  width: 100%;
  height: 250px;
  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.8em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

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

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

.page-blog__pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  gap: 15px;
}

.page-blog__pagination-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover:not(.page-blog__pagination-link--disabled):not(.page-blog__pagination-link--active) {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__pagination-link--active {
  background-color: #FCBC45;
  color: #000000;
  cursor: default;
}

.page-blog__pagination-link--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.page-blog__category-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

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

.page-blog__category-description {
  font-size: 1em;
  color: #cccccc;
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  padding: 100px 0;
  text-align: center;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 15px rgba(252, 188, 69, 0.4);
}

.page-blog__cta-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(252, 188, 69, 0.6);
}

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-content {
    padding: 15px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 0 5px;
  }
  .page-blog__latest-posts,
  .page-blog__categories,
  .page-blog__cta-section {
    padding: 50px 0;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__section-subtitle {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-blog__post-image {
    height: 200px; /* Ensure minimum height for content images */
    max-width: 100%;
    height: auto;
  }
  .page-blog__post-title {
    font-size: 1.5em;
  }
  .page-blog__post-excerpt {
    font-size: 0.95em;
  }
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1.2em;
  }
  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-blog__container img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__hero-button {
    display: block;
    width: fit-content;
    margin: 10px auto;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__pagination-link {
    width: 40px;
    height: 40px;
  }
}