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

.page-blog__hero-section {
  padding-top: 10px; /* Adhering to the 10px top spacing rule */
  padding-bottom: 60px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-blog__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 16px;
  gap: 40px;
}

.page-blog__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-blog__hero-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  color: #E53935;
  margin-bottom: 20px;
}

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

.page-blog__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-blog__main-visual-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
}

.page-blog__blog-list-section {
  padding: 60px 0;
  background-color: #F5F7FA;
  color: #333333;
}

.page-blog__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__section-title--light {
  color: #ffffff;
}

.page-blog__section-description--light {
  color: #f0f0f0;
}

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

.page-blog__blog-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.page-blog__blog-card-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-blog__blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-blog__blog-card:hover .page-blog__blog-card-image {
  transform: scale(1.05);
}

.page-blog__blog-card-content {
  padding: 20px;
}

.page-blog__blog-card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__blog-card-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__blog-card-summary {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FF5A4F;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #E53935;
}

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

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FFFFFF;
  color: #E53935;
  border: 2px solid #E53935;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-blog__cta-section {
  padding: 80px 0;
  background-color: #E53935; /* Brand main color for dark background */
  text-align: center;
  color: #ffffff;
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-blog__cta-section .page-blog__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.4em;
  }

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

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

  .page-blog__blog-card-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section - Column layout */
  .page-blog__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 30px;
  }

  .page-blog__hero-content,
  .page-blog__hero-image {
    flex: 1 1 100%;
    text-align: center;
  }

  .page-blog__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__blog-list-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__blog-card-image-wrapper {
    height: 180px;
  }

  .page-blog__blog-card-title {
    font-size: 1.2em;
  }

  .page-blog__blog-card-summary {
    font-size: 0.95em;
  }

  /* General image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__blog-card-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__hero-section { padding-top:10px !important; }
  .page-blog__cta-buttons, .page-blog__button-group, .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for buttons on mobile */
  }
  .page-blog__main-visual-image { max-width: 100% !important; width: 100% !important; height: auto !important; }
  .page-blog__blog-card-image { max-width: 100% !important; width: 100% !important; height: auto !important; }
}