.page-blog {
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.page-blog__hero-section {
  background-color: #0A2463; /* Main brand color for hero background */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  padding-bottom: 60px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  line-height: 1.2;
  font-weight: bold;
}

.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-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color for button */
  color: #0A2463;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-blog__main-content {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.page-blog__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #0A2463;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__sub-title {
  font-size: 2em;
  color: #0A2463;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
}

.page-blog__sub-sub-title {
  font-size: 1.6em;
  color: #0A2463;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-blog__list {
  list-style-type: disc;
  margin-left: 40px;
  margin-bottom: 20px;
  color: #333333;
}

.page-blog__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-blog__content-button {
  display: inline-block;
  background-color: #0A2463;
  color: #ffffff;
  padding: 12px 25px;
  font-size: 1.05em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 30px;
}

.page-blog__content-button:hover {
  background-color: #1a3a7f;
}

.page-blog__categories-section {
  background-color: #ffffff;
  padding: 60px 20px;
}

.page-blog__categories-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-blog__category-card {
  background-color: #fefefe;
  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__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-blog__card-title a {
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #FFD700;
}

.page-blog__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-blog__cta-section {
  background-color: #0A2463;
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

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

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2463;
  padding: 18px 40px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }

  .page-blog__hero-description {
    font-size: 1.2em;
  }

  .page-blog__section-title {
    font-size: 2.2em;
  }

  .page-blog__sub-title {
    font-size: 1.8em;
  }

  .page-blog__sub-sub-title {
    font-size: 1.4em;
  }

  .page-blog__paragraph, .page-blog__list-item {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 80px);
    padding-bottom: 40px;
  }

  .page-blog__hero-title {
    font-size: 2.2em;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-blog__main-content, .page-blog__categories-section, .page-blog__cta-section {
    padding: 40px 15px;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__sub-title {
    font-size: 1.6em;
  }

  .page-blog__sub-sub-title {
    font-size: 1.3em;
  }

  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__card-image {
    height: 200px;
  }

  .page-blog__card-title {
    font-size: 1.5em;
  }

  .page-blog__cta-title {
    font-size: 2.2em;
  }

  .page-blog__cta-description {
    font-size: 1.1em;
  }

  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Critical: Ensure all content images are responsive and do not overflow */
  .page-blog__hero-image, .page-blog__content-image, .page-blog__card-image {
    max-width: 100%;
    height: auto;
  }

  /* Ensure all img elements within .page-blog are at least 200px wide for content */
  .page-blog img {
    min-width: 200px; /* Base minimum for all content images */
    min-height: 200px; /* Base minimum for all content images */
    width: 100%; /* Override to ensure responsiveness */
    height: auto; /* Override to ensure responsiveness */
  }

  /* Specific overrides for smaller elements if they were to exist, ensuring they meet minimum */
  .page-blog__card-image {
    min-width: unset; /* Allow card images to scale down with grid but still be large content images */
    min-height: unset;
    height: 200px; /* Fixed height for visual consistency in cards */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }

  .page-blog__hero-description {
    font-size: 0.9em;
  }

  .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__sub-title {
    font-size: 1.4em;
  }

  .page-blog__cta-title {
    font-size: 1.8em;
  }
}