.page-blog {
  color: #f0f0f0; /* Light text for better contrast on a potentially dark background, assuming shared.css might set a dark body background. If not, this will be adjusted by the intelligent color system. */
  background-color: #002060; /* Dark blue background for the page content */
  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__section-title {
  font-size: 2.5rem;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding: 40px;
  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;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #002060;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__latest-posts {
  padding: 80px 0;
  background-color: #0d0d2d; /* Slightly lighter dark blue for contrast */
}

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

.page-blog__post-card {
  background-color: #002060;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 25px;
}

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

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

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

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #FFD700;
  padding: 8px 15px;
  border-radius: 25px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__read-more:hover {
  background-color: #FFD700;
  color: #002060;
}

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

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

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #0d0d2d;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.page-blog__category-image {
  width: 100%;
  height: 150px; /* Ensure images are not too small */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-blog__category-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
}

.page-blog__cta-banner {
  background: linear-gradient(135deg, #002060, #0d0d2d);
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

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

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

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

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

.page-blog__cta-button--primary {
  background-color: #FFD700;
  color: #002060;
}

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

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

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

.page-blog__about-8k8vip {
  padding: 80px 0;
  background-color: #0d0d2d;
  color: #f0f0f0;
}

.page-blog__paragraph {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__learn-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #FFD700;
  padding: 10px 20px;
  border-radius: 25px;
  margin-top: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__learn-more:hover {
  background-color: #FFD700;
  color: #002060;
}

/* Responsive adjustments */
@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__post-title {
    font-size: 1.3rem;
  }
  .page-blog__cta-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 450px;
  }
  .page-blog__hero-content {
    padding: 25px;
  }
  .page-blog__hero-title {
    font-size: 2.5rem;
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__category-image, .page-blog__post-image {
    max-width: 100%;
    height: auto; /* Ensure images do not overflow */
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-title {
    font-size: 1.8rem;
  }
  .page-blog__cta-description {
    font-size: 1rem;
  }
  .page-blog__paragraph {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2rem;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
  }
  .page-blog__post-title {
    font-size: 1.2rem;
  }
  .page-blog__hero-content {
    padding: 15px;
  }
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__cta-title {
    font-size: 1.5rem;
  }
}