.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: var(--secondary-color); /* Matches body background: #FFFFFF */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

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

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

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #F0F8FF; /* Light blue tint for hero background */
  color: #333333;
}

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

.page-blog__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 800;
  color: #1e1765; /* Darker blue for contrast */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-content .page-blog__description {
  text-align: left;
  margin: 0 0 30px 0;
  color: #555555;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

.page-blog__btn-secondary:hover {
  background-color: #E0F2FF;
  color: #1a7fb7;
  border-color: #1a7fb7;
}

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

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

/* Intro Section */
.page-blog__intro-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-blog__intro-section p {
  max-width: 900px;
  margin: 15px auto;
  text-align: center;
  font-size: 1.05em;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #FFFFFF;
}

.page-blog__latest-posts-section .page-blog__description {
  color: #E0F2FF;
}

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

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

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

.page-blog__post-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

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

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

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

.page-blog__read-more {
  color: #26A9E0;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

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

.page-blog__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Why Follow Section */
.page-blog__why-follow-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-blog__feature-item {
  background-color: #F8F8F8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__icon-box-media {
  width: 150px; /* Smaller for feature icons */
  height: 150px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-blog__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-blog__feature-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-blog__feature-item p {
  color: #555555;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

.page-blog__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

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

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

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #F0F8FF; /* Light blue tint */
  color: #333333;
}

.page-blog__cta-section .page-blog__description {
  color: #555555;
}

.page-blog__cta-section .page-blog__cta-buttons {
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .page-blog__hero-content {
    order: 2;
  }

  .page-blog__hero-image {
    order: 1;
  }

  .page-blog__hero-content .page-blog__description {
    text-align: center;
  }

  .page-blog__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-blog__description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

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

  .page-blog__hero-content .page-blog__description {
    text-align: center !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
  }

  .page-blog__hero-image img {
    max-width: 100% !important;
    height: auto !important;
  }

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

  .page-blog__container,
  .page-blog__post-card,
  .page-blog__feature-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-blog__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__icon-box-media {
    width: 120px; /* Maintain round shape, smaller size */
    height: 120px;
    border-width: 3px;
  }

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

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

  .page-blog__faq-toggle {
    font-size: 1.3em;
  }
}