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

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

.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Adjust as needed for visual impact */
}

.page-blog__hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)); /* Dark overlay for text readability */
}

.page-blog__hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-blog__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-blog__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #E53935;
  padding: 12px 25px;
  border: 2px solid #E53935;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-blog__intro-section,
.page-blog__blog-section,
.page-blog__cta-section,
.page-blog__faq-section,
.page-blog__about-us-summary {
  padding: 50px 0;
  margin-bottom: 30px;
}

.page-blog__intro-section {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-radius: 10px;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  padding: 40px 0;
}

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

.page-blog__section-title.page-blog__dark-bg {
  color: #ffffff;
  background: #E53935;
  padding: 15px 20px;
  border-radius: 8px;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-blog__blog-card {
  background-color: #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;
  height: 100%;
}

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

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

.page-blog__blog-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card visuals */
  object-fit: cover;
  display: block;
}

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

.page-blog__blog-card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #E53935;
  line-height: 1.3;
}

.page-blog__blog-card-meta {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 15px;
}

.page-blog__blog-card-excerpt {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

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

.page-blog__cta-section {
  background: #E53935;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
  border-radius: 10px;
}

.page-blog__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 20px auto 40px auto;
  color: #f0f0f0;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__cta-buttons .page-blog__btn-primary,
.page-blog__cta-buttons .page-blog__btn-secondary {
  min-width: 200px;
}

.page-blog__faq-section {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-radius: 10px;
}

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

.page-blog__faq-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
  padding-bottom: 10px;
  cursor: pointer;
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  padding: 15px 0;
  list-style: none; /* For <summary> tag */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #E53935;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  font-size: 1em;
  color: #555555;
  padding: 0 0 15px 0;
  line-height: 1.6;
}

.page-blog__about-us-summary {
  text-align: center;
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-blog__about-us-summary .page-blog__section-description {
  margin-bottom: 40px;
}

/* --- Responsive Styles --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-blog__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-blog__hero-content {
    padding: 15px;
  }

  .page-blog__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-blog__hero-description {
    font-size: clamp(0.9em, 1.8vw, 1.1em);
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__section-description {
    font-size: 1em;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

  .page-blog__hero-image {
    max-height: 300px;
  }

  .page-blog__hero-content {
    padding: 10px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
    margin-bottom: 10px;
  }

  .page-blog__hero-description {
    font-size: 0.9em !important;
    margin-bottom: 20px;
  }

  .page-blog__hero-cta {
    font-size: 1em !important;
    padding: 10px 20px !important;
  }

  .page-blog__intro-section {
    margin-top: -40px;
    padding: 30px 0;
  }

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

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

  .page-blog__section-description {
    font-size: 0.95em !important;
    margin-bottom: 20px;
  }

  .page-blog__blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 20px;
  }

  .page-blog__blog-card-image {
    height: 180px;
  }

  .page-blog__blog-card-title {
    font-size: 1.2em !important;
  }

  .page-blog__blog-card-meta,
  .page-blog__blog-card-excerpt {
    font-size: 0.9em !important;
  }

  .page-blog__blog-section,
  .page-blog__cta-section,
  .page-blog__faq-section,
  .page-blog__about-us-summary {
    padding: 30px 0;
    margin-bottom: 20px;
  }

  .page-blog__cta-section {
    padding: 50px 0;
  }

  .page-blog__cta-description {
    font-size: 1em !important;
    margin: 15px auto 30px auto;
  }

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

  .page-blog__cta-buttons .page-blog__btn-primary,
  .page-blog__cta-buttons .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-blog__faq-question {
    font-size: 1.1em !important;
    padding: 10px 0;
  }

  .page-blog__faq-answer {
    font-size: 0.95em !important;
    padding: 0 0 10px 0;
  }

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

  /* All sections/cards/containers for mobile overflow */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__blog-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Small mobile (max-width: 549px) for single column grid */
@media (max-width: 549px) {
  .page-blog__blog-grid {
    grid-template-columns: 1fr !important;
  }
}