.page-blog {
  color: #ffffff; /* Light text on dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Minimum height for hero */
}

.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;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-blog__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  text-align: center;
}

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

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-blog__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

.page-blog__hero-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-blog__hero-button--secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

.page-blog__section-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-blog__latest-articles,
.page-blog__categories-section,
.page-blog__about-phwin,
.page-blog__faq-section,
.page-blog__final-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-blog__article-card {
  background-color: #0A192F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

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

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

.page-blog__article-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-blog__article-title a:hover {
  color: #e6c200;
}

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

.page-blog__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #0A192F;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

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

.page-blog__category-card {
  background-color: #0A192F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  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 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-blog__category-title {
  font-size: 1.3em;
  color: #FFD700;
  padding: 15px;
  margin: 0;
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #0A192F, #1e3a5f);
  padding: 80px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
}

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

.page-blog__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 25px;
  line-height: 1.2;
}

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

.page-blog__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 35px;
  background-color: #FFD700;
  color: #0A192F;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

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

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

.page-blog__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
}

.page-blog__about-phwin {
  background-color: #0A192F;
  padding: 60px 20px;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

.page-blog__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-blog__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

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

.page-blog__faq-section {
  margin-top: 60px;
}

.page-blog__faq-item {
  background-color: #0A192F;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-blog__faq-question {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-blog__faq-answer {
  font-size: 1em;
  color: #cccccc;
}

.page-blog__final-cta {
  background: linear-gradient(135deg, #FFD700, #e6c200);
  padding: 80px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
  margin-bottom: 40px;
}

.page-blog__final-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__final-cta-title {
  font-size: 2.8em;
  color: #0A192F;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-blog__final-cta-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 40px;
}

.page-blog__final-cta-button {
  display: inline-block;
  padding: 18px 35px;
  background-color: #0A192F;
  color: #FFD700;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-blog__final-cta-button:hover {
  background-color: #1e3a5f;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__cta-title, .page-blog__final-cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller mobile header if needed */
  }
  .page-blog__hero-container {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__hero-button {
    width: 100%;
    max-width: 300px; /* Constrain button width on mobile */
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__section-intro {
    font-size: 1em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__category-card {
    height: auto;
  }
  .page-blog__category-image {
    height: 150px;
  }
  .page-blog__cta-title, .page-blog__final-cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description, .page-blog__final-cta-description {
    font-size: 1em;
  }
  .page-blog__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    width: 100%;
    max-width: 300px;
  }
  .page-blog__final-cta-button {
    width: 100%;
    max-width: 300px;
  }
  .page-blog__feature-title {
    font-size: 1.5em;
  }
  .page-blog__faq-question {
    font-size: 1.3em;
  }
  /* Mobile image overflow prevention */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title, .page-blog__final-cta-title {
    font-size: 1.8em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__category-title {
    font-size: 1.1em;
  }
  .page-blog__hero-container {
    padding: 40px 10px;
  }
  .page-blog__latest-articles,
  .page-blog__categories-section,
  .page-blog__about-phwin,
  .page-blog__faq-section,
  .page-blog__final-cta {
    padding: 20px 10px;
  }
}