.page-blog {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 500px;
}

.page-blog__hero-content {
  background-color: #2F6BFF;
  color: #FFFFFF;
  padding: 30px 20px;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  margin-top: -8px; /* Slightly overlap with image for visual flow */
}

.page-blog__main-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  color: #D6E2FF;
}

.page-blog__posts-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-blog__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #1F2D3D;
}

.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: 1px solid #D6E2FF;
  border-radius: 8px;
  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 16px rgba(0, 0, 0, 0.1);
}

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

.page-blog__post-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-blog__post-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-blog__post-card-title a {
  color: #2F6BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-card-title a:hover {
  color: #6FA3FF;
}

.page-blog__post-card-meta {
  font-size: 0.85rem;
  color: #6FA3FF;
  margin-bottom: 15px;
}

.page-blog__post-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
  align-self: flex-start;
  min-width: 100px; /* Ensure button is not too small */
  text-align: center;
}

.page-blog__read-more:hover {
  opacity: 0.9;
}

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

.page-blog__view-all-button {
  display: inline-block;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: opacity 0.3s ease;
}

.page-blog__view-all-button:hover {
  opacity: 0.9;
}

.page-blog__cta-section {
  background-color: #2F6BFF;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 60px;
}

.page-blog__cta-description {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 20px auto 30px auto;
  color: #D6E2FF;
}

.page-blog__cta-button {
  display: inline-block;
  background: #FFFFFF;
  color: #2F6BFF;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 200px;
}

.page-blog__cta-button:hover {
  background-color: #A5C4FF;
  color: #1F2D3D;
}

.page-blog__faq-section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto 60px auto;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.page-blog__faq-item {
  border-bottom: 1px solid #D6E2FF;
  padding: 20px 0;
}

.page-blog__faq-item:last-child {
  border-bottom: none;
}

.page-blog__faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1F2D3D;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-blog__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.page-blog__faq-question.active::after {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  font-size: 0.95rem;
  color: #1F2D3D;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-top: 0;
}

.page-blog__faq-answer.active {
  max-height: 200px; /* Adjust as needed for content */
  padding-top: 10px;
}

.page-blog__faq-answer p {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-blog__hero-section {
    padding-left: 12px;
    padding-right: 12px;
  }
  .page-blog__hero-image {
    max-width: 100%;
    height: auto;
    min-height: 200px;
  }
  .page-blog__hero-content {
    padding: 20px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-blog__hero-description {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
  }
  .page-blog__posts-section, .page-blog__cta-section, .page-blog__faq-section {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 12px;
    margin-right: 12px;
    box-sizing: border-box;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-image {
    max-width: 100%;
    height: auto;
    min-height: 200px;
  }
  .page-blog__read-more {
    width: 100%;
    text-align: center;
  }
  .page-blog__cta-button {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    min-height: 44px;
  }
  .page-blog__faq-question {
    font-size: 1rem;
  }
}

@media (max-width: 549px) {
  .page-blog__section-title {
    font-size: 1.5rem;
  }
  .page-blog__hero-image {
    min-height: 200px;
  }
  .page-blog__post-image {
    min-height: 200px;
  }
  .page-blog__post-card-title {
    font-size: 1.1rem;
  }
  .page-blog__post-card-excerpt {
    font-size: 0.85rem;
  }
  .page-blog__view-all-button {
    width: 100%;
    max-width: 280px;
    font-size: 1rem;
  }
}

/* Ensure all content area images are responsive and not too small */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__post-image {
  min-width: 200px;
  min-height: 200px;
}