.page-blog {
  color: #333333; /* Dark text for light body background #f4f7f6 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-blog__container--flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-blog__container--center {
  text-align: center;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #007bff; /* Primary brand color */
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-section {
  background-color: #f0f8ff; /* Light background to complement hero image */
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.75); /* Dark overlay for text readability */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
}

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

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-blog__button--primary {
  background-color: #007bff; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-blog__button--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
}

.page-blog__button--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-blog__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-blog__button--tertiary {
  background-color: #28a745; /* Auxiliary brand color */
  color: #ffffff;
  border: 2px solid #28a745;
}

.page-blog__button--tertiary:hover {
  background-color: #1e7e34;
  border-color: #1e7e34;
  transform: translateY(-2px);
}

.page-blog__latest-articles {
  padding: 80px 0;
  background-color: #ffffff;
}

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

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

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

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

.page-blog__article-title {
  font-size: 1.6em;
  color: #007bff; /* Primary brand color */
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #28a745; /* Auxiliary brand color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-blog__read-more:hover {
  color: #1e7e34;
  text-decoration: underline;
}

.page-blog__view-all-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-blog__about-blog-section {
  padding: 80px 0;
  background-color: #e6f0ff; /* Light blue background */
}

.page-blog__about-content {
  flex: 1;
  padding-right: 40px;
}

.page-blog__about-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #444444;
}

.page-blog__about-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-blog__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

.page-blog__cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #007bff, #28a745); /* Gradient from primary to auxiliary */
  color: #ffffff;
  text-align: center;
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
  font-size: 3em;
}

.page-blog__cta-description {
  font-size: 1.3em;
  max-width: 900px;
  margin: 20px auto 40px auto;
  line-height: 1.5;
}

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

.page-blog__newsletter-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-blog__newsletter-title {
  font-size: 2em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-blog__newsletter-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.page-blog__newsletter-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  min-width: 250px;
}

.page-blog__newsletter-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

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

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

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

  .page-blog__cta-section .page-blog__section-title {
    font-size: 2.5em;
  }

  .page-blog__about-content {
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 0;
  }

  .page-blog__hero-content {
    width: 95%;
    padding: 20px;
  }

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

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

  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

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

  .page-blog__latest-articles, .page-blog__about-blog-section, .page-blog__cta-section, .page-blog__newsletter-section {
    padding: 60px 0;
  }

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

  .page-blog__about-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .page-blog__container--flex {
    flex-direction: column;
  }

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

  .page-blog__cta-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog__newsletter-input {
    min-width: unset;
    width: 100%;
  }

  /* Ensure content area images are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

/* Generic image rule for content area to prevent small sizes */
.page-blog img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}