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

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

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

.page-blog__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-blog__hero-section {
  position: relative;
  background: linear-gradient(135deg, #26A9E0, #1a8cc7);
  color: #ffffff;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  max-height: 500px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-blog__hero-content {
  text-align: center;
  padding: 40px 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Responsive H1 font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Button responsive */
  white-space: normal; /* Button text wrap */
  word-wrap: break-word; /* Button text wrap */
  text-align: center;
}

.page-blog__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-blog__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
  transform: translateY(-2px);
}

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

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-blog__article-card {
  background: #ffffff;
  border-radius: 10px;
  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__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-blog__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
  line-height: 1.3;
}

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

.page-blog__card-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #EA7C07;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #d16b06;
}

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

/* About Blog Section */
.page-blog__about-blog {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff; /* White text for brand color background */
}

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

.page-blog__about-blog .page-blog__text-block p {
  font-size: 17px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: justify;
}

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

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger border-radius */
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtle shadow */
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  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: 18px; /* Increased font size */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Dark text for question */
}
.page-blog__faq-toggle {
  font-size: 26px; /* Increased font size */
  font-weight: bold;
  color: #26A9E0; /* Brand color for toggle icon */
  flex-shrink: 0;
  margin-left: 20px; /* Increased margin */
  width: 30px; /* Increased size */
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: #fdfdfd; /* Lighter background for answer */
  border-top: 1px solid #eeeeee; /* Separator */
  border-radius: 0 0 8px 8px;
}
details.page-blog__faq-item .page-blog__faq-answer p {
  font-size: 16px;
  color: #555555;
  margin-top: 15px;
}

/* CTA Bottom Section */
.page-blog__cta-bottom {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(30px, 4vw, 48px);
  }
  .page-blog__section-title {
    font-size: 32px;
  }
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  /* HERO Section */
  .page-blog__hero-section {
    padding-top: 10px;
  }
  .page-blog__hero-image {
    max-height: 300px;
  }
  .page-blog__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-content {
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }
  .page-blog__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Latest Articles Section */
  .page-blog__latest-articles {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-blog__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-blog__card-image {
    height: 180px; /* Smaller height for mobile cards */
  }
  .page-blog__card-title {
    font-size: 18px;
  }
  .page-blog__card-excerpt {
    font-size: 14px;
  }
  .page-blog__view-all-button {
    margin-top: 30px;
  }

  /* About Blog Section */
  .page-blog__about-blog {
    padding: 40px 0;
  }
  .page-blog__about-blog .page-blog__text-block p {
    font-size: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* FAQ Section */
  .page-blog__faq-section {
    padding: 40px 0;
  }
  .page-blog__faq-list {
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 22px;
    margin-left: 15px;
    width: 25px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
  }
  details.page-blog__faq-item .page-blog__faq-answer p {
    font-size: 14px;
  }

  /* CTA Bottom Section */
  .page-blog__cta-bottom {
    padding: 40px 0;
  }

  /* General image styling for content area */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important; /* Ensure padding/border included */
  }
  .page-blog__hero-section .page-blog__container,
  .page-blog__latest-articles .page-blog__container,
  .page-blog__about-blog .page-blog__container,
  .page-blog__faq-section .page-blog__container,
  .page-blog__cta-bottom .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}