.page-blog {
  color: #333333; /* Dark text for default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

/* Hero Section */
.page-blog__hero-section {
  background-color: #003366; /* Main brand color */
  color: #ffffff; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

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

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
  z-index: 0;
}

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

.page-blog__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 180px; /* Ensure buttons are not too small */
}

.page-blog__hero-button--primary {
  background-color: #FFD700; /* Accent color */
  color: #003366; /* Dark text for accent background */
  border: 2px solid #FFD700;
}

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

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

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

/* Articles Section */
.page-blog__articles-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
}

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

.page-blog__articles-heading {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2.5em;
  color: #003366;
  margin-bottom: 50px;
  position: relative;
}

.page-blog__articles-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

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

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

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

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

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

.page-blog__article-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__article-link {
  display: inline-block;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-blog__article-link:hover {
  color: #FFD700;
  border-color: #003366;
}

/* Call to Action Section */
.page-blog__cta-section {
  background-color: #003366;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-blog__cta-container {
  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;
  margin-bottom: 40px;
}

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

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

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

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

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

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

/* About Blog Section (Long Content) */
.page-blog__about-blog-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

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

.page-blog__about-blog-heading {
  font-size: 2.2em;
  color: #003366;
  margin-bottom: 30px;
  text-align: center;
}

.page-blog__about-blog-subheading {
  font-size: 1.8em;
  color: #003366;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.page-blog__about-blog-text {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #444444;
}

.page-blog__about-blog-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

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

.page-blog__about-blog-button--primary {
  background-color: #FFD700;
  color: #003366;
  border: 2px solid #FFD700;
}

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

.page-blog__about-blog-button--secondary {
  background-color: transparent;
  color: #003366;
  border: 2px solid #003366;
}

.page-blog__about-blog-button--secondary:hover {
  background-color: #003366;
  color: #FFD700;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__articles-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-blog__hero-section {
    padding: 60px 20px;
  }
  .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;
  }

  .page-blog__articles-heading {
    font-size: 2em;
  }
  .page-blog__article-card {
    margin-bottom: 20px;
  }
  .page-blog__article-image {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto;
    max-height: 200px; /* Cap max height for mobile article images */
  }

  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__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__about-blog-heading {
    font-size: 1.8em;
  }
  .page-blog__about-blog-subheading {
    font-size: 1.5em;
  }
  .page-blog__about-blog-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__about-blog-button {
    width: 100%;
    max-width: 300px;
  }

  /* Content area images must not cause horizontal scroll */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__articles-heading {
    font-size: 1.8em;
  }
  .page-blog__cta-title {
    font-size: 1.5em;
  }
  .page-blog__about-blog-heading {
    font-size: 1.5em;
  }
}

/* Ensure content area images are never smaller than 200px (except for shared components like logos/icons) */
.page-blog__articles-section img,
.page-blog__about-blog-section img {
  min-width: 200px;
  min-height: 200px;
}