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

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: #f5f8fa; /* Light background for hero */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

.page-blog__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

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

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

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

.page-blog__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c2;
  border-color: #1e87c2;
}

/* Blog Posts Section */
.page-blog__posts-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

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

.page-blog__posts-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 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 600;
}

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
}

.page-blog__post-date {
  font-size: 0.85em;
  color: #888888;
  margin-bottom: 10px;
  display: block;
}

.page-blog__read-more {
  color: #26A9E0;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.page-blog__arrow {
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.page-blog__post-card:hover .page-blog__arrow {
  margin-left: 10px;
}

.page-blog__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-blog__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 600;
}

.page-blog__pagination-link:hover:not(.page-blog__pagination-link--active) {
  background-color: #e0f2f7;
}

.page-blog__pagination-link--active {
  background-color: #26A9E0;
  color: #ffffff;
  pointer-events: none;
}

/* Categories Section */
.page-blog__categories-section {
  background-color: #26A9E0; /* Brand color dark background */
  padding: 80px 0;
  text-align: center;
}

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

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px 15px;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-blog__category-card:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.page-blog__category-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.page-blog__category-title {
  font-size: 1.1em;
  font-weight: 600;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #f8f8f8;
}

.page-blog__cta-text {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

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

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

.page-blog__faq-question::-webkit-details-marker { /* For details/summary */
  display: none;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-blog__intro-text {
    font-size: 1em;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-blog__cta-button,
  .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__posts-section {
    padding: 50px 0;
  }

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

  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-blog__post-card {
    margin-bottom: 20px;
  }

  .page-blog__post-image {
    height: 180px;
  }

  .page-blog__categories-section {
    padding: 50px 0;
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding: 0 15px;
  }

  .page-blog__category-card {
    padding: 20px 10px;
  }

  .page-blog__category-icon {
    font-size: 2em;
  }

  .page-blog__cta-section {
    padding: 50px 15px;
  }

  .page-blog__cta-text {
    font-size: 1em;
  }

  .page-blog__faq-section {
    padding: 50px 0;
  }

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

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

  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9em;
  }

  /* Ensure all images are responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__posts-grid, .page-blog__categories-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}