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

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

.page-blog__hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: #FFFFFF;
  color: #333333;
  gap: 40px;
}

.page-blog__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-blog__main-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

.page-blog__hero-image-container {
  flex: 1;
  max-width: 600px;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

.page-blog__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-blog__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

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

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

.page-blog__categories,
.page-blog__featured-posts,
.page-blog__why-follow,
.page-blog__faq-section,
.page-blog__cta-section {
  padding: 60px 0;
}

.page-blog__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

.page-blog__category-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-blog__category-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-blog__category-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
  font-weight: bold;
}

.page-blog__category-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-blog__category-title a:hover {
  text-decoration: underline;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: #555555;
}

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

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

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__post-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover; /* Cover to fill, might crop */
}

.page-blog__post-meta {
  font-size: 0.85em;
  color: #888888;
  padding: 15px 20px 0;
}

.page-blog__post-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #333333;
  padding: 10px 20px;
}

.page-blog__post-title a {
  color: #333333;
  text-decoration: none;
}

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

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 15px;
  flex-grow: 1; /* Make excerpt take available space */
}

.page-blog__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  padding: 0 20px 20px;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

.page-blog__view-all-posts {
  text-align: center;
  margin-top: 40px;
}

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

.page-blog__feature-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.page-blog__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-blog__feature-title {
  font-size: 1.5em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-blog__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-blog__faq-list {
  margin-top: 40px;
}

.page-blog__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-question:hover {
  background-color: #f9f9f9;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
}

.page-blog__cta-content {
  text-align: center;
}

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

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box; /* Ensure padding is included in width */
  overflow: hidden; /* Hide overflow */
}

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

/* Mobile Styles */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__hero-banner {
    flex-direction: column-reverse; /* Content on top, image below for mobile */
    text-align: center;
    padding: 10px 15px 40px; /* Small top padding for mobile */
    gap: 20px;
  }

  .page-blog__hero-content {
    max-width: 100%;
  }

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

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog__hero-image-container {
    max-width: 100%;
    order: -1; /* Place image above content */
  }

  .page-blog__hero-image {
    object-fit: contain; /* Ensure full image is visible, no cropping */
    width: 100%;
    height: auto; /* Allow height to adjust */
    max-height: 300px; /* Max height for mobile hero image */
  }

  .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;
    margin: 0 0 10px 0 !important; /* Stack buttons vertically */
  }

  .page-blog__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-blog__categories,
  .page-blog__featured-posts,
  .page-blog__why-follow,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }

  .page-blog__category-grid,
  .page-blog__post-grid,
  .page-blog__feature-grid {
    grid-template-columns: 1fr; /* Single column for grids */
    gap: 20px;
  }

  .page-blog__category-card,
  .page-blog__post-card,
  .page-blog__feature-item {
    padding: 20px;
  }

  .page-blog__post-image {
    height: 180px; /* Adjust image height for mobile cards */
  }

  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }

  /* Ensure all images are responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__hero-banner .page-blog__hero-image {
    object-fit: contain !important;
    height: auto !important;
    max-height: none !important; /* Remove max-height for mobile to allow contain */
  }

  /* Content area images */
  .page-blog__post-image,
  .page-blog__category-icon,
  .page-blog__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__category-icon, .page-blog__feature-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 15px auto;
  }

  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__feature-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}