.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

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

.page-blog__section-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  text-align: center;
  color: #000000;
  font-size: clamp(24px, 3.5vw, 38px);
}

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

.page-blog__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.7;
}

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

/* Banner Section */
.page-blog__banner-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* As per fixed header spacing rule */
  background-color: #f0f0f0;
}

.page-blog__banner-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__banner-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-blog__banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #000000;
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: clamp(28px, 4vw, 48px); /* H1 font size constraint */
}

.page-blog__intro-text {
  font-size: 18px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

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

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

.page-blog__grid-item {
  background: #fdfdfd;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-blog__grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-blog__grid-title {
  font-size: 22px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__grid-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-blog__category-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease;
}

.page-blog__category-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-blog__post-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

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

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

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

.page-blog__post-meta {
  font-size: 14px;
  color: #777777;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-blog__read-more {
  display: inline-block;
  color: #26A9E0;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #26A9E0;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #1a7bb0;
  border-color: #1a7bb0;
}

.page-blog__view-all-posts-container {
  text-align: center;
  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;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #f5f5f5;
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
}

.page-blog__cta-button:hover {
  background: #d46b00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__banner-image {
    height: 500px;
  }
  .page-blog__post-image {
    height: 220px;
  }
}

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

  .page-blog__banner-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__banner-image {
    height: 300px;
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }

  .page-blog__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-blog__section-title {
    font-size: clamp(22px, 5vw, 32px);
    margin-bottom: 25px;
  }

  .page-blog__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-blog__about-blog-section, 
  .page-blog__categories-section, 
  .page-blog__latest-posts-section, 
  .page-blog__faq-section, 
  .page-blog__cta-section {
    padding: 50px 0;
  }

  .page-blog__grid-item, .page-blog__category-item {
    padding: 20px;
  }

  .page-blog__grid-title {
    font-size: 20px;
  }

  .page-blog__grid-item p {
    font-size: 15px;
  }

  .page-blog__post-list {
    gap: 20px;
  }

  .page-blog__post-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-blog__post-title {
    font-size: 18px;
  }

  .page-blog__post-excerpt {
    font-size: 15px;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }

  .page-blog__faq-qtext {
    font-size: 15px;
  }
  
  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

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

  .page-blog__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General image responsiveness for all images within .page-blog */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Ensure containers with images are also responsive */
  .page-blog__post-card, .page-blog__grid-item, .page-blog__category-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }
}

@media (max-width: 480px) {
  .page-blog__banner-image {
    height: 200px;
  }
  .page-blog__post-image {
    height: 150px;
  }
}