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

.page-blog__hero-section {
  padding-top: 10px; /* Assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  background: #F5F7FA; /* Light background for the hero section */
}

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

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

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size with clamp */
  font-weight: 700;
  line-height: 1.2;
  color: #E53935; /* Brand color for main title */
  margin-bottom: 20px;
}

.page-blog__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #333333;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-blog__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

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

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

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

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

.page-blog__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
}

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

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

.page-blog__icon-box {
  background: #F5F7FA;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__icon-box-media {
  width: 200px; /* Adjusted to 200px for square as per module1 feature square */
  height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FF5A4F;
  box-shadow: 0 0 0 8px rgba(255, 90, 79, 0.2);
}

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

.page-blog__icon-box-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-blog__icon-box-text {
  font-size: 1rem;
  color: #555555;
}

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

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

.page-blog__article-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  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 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-blog__article-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: #555555;
  flex-grow: 1;
}

.page-blog__view-all-button-container {
  text-align: center;
}

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

.page-blog__dark-section {
  background: #E53935; /* Brand primary color for dark section */
  color: #ffffff; /* White text for contrast */
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__section-description {
  color: #ffffff; /* Ensure titles and descriptions are white */
}

.page-blog__dark-section .page-blog__btn-primary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #ffffff;
}

.page-blog__dark-section .page-blog__btn-primary:hover {
  background: #F5F7FA;
  color: #E53935;
}

.page-blog__dark-section .page-blog__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-blog__dark-section .page-blog__btn-secondary:hover {
  background: #ffffff;
  color: #E53935;
}

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

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-blog__faq-question:hover {
  background: #E0E0E0;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #E53935;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-blog__faq-answer {
  padding: 0 25px 18px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  max-height: 0; /* Hidden by default */
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 500px; /* Sufficiently large to show content when open */
}

/* General image and container responsive styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__section,
.page-blog__card,
.page-blog__container,
.page-blog__cta-buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Ensure no horizontal scroll */
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section */
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 30px;
  }

  .page-blog__hero-content {
    order: 2;
    flex: 1 1 100%;
    min-width: unset;
    text-align: center;
  }

  .page-blog__hero-image {
    order: 1;
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-blog__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-blog__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* Intro Section */
  .page-blog__intro-section {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

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

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

  .page-blog__icon-box {
    padding: 25px;
  }

  .page-blog__icon-box-media {
    width: 150px;
    height: 150px;
    border: 3px solid #FF5A4F;
    box-shadow: 0 0 0 6px rgba(255, 90, 79, 0.2);
  }

  .page-blog__icon-box-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .page-blog__icon-box-text {
    font-size: 0.95rem;
  }

  /* Latest Articles Section */
  .page-blog__latest-articles-section {
    padding: 40px 0;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

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

  .page-blog__article-title {
    font-size: 1.15rem;
  }

  .page-blog__article-meta,
  .page-blog__article-excerpt {
    font-size: 0.9rem;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 60px 0;
  }

  /* FAQ Section */
  .page-blog__faq-section {
    padding: 40px 0;
  }

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

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

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

  /* General image and container overrides for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}