.page-blog {
  font-family: Arial, sans-serif;
  color: #1F2D3D;
  background-color: #F4F7FB; /* Body background from custom colors */
  line-height: 1.6;
}

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding to avoid double header offset */
  padding-bottom: 60px;
  background-color: #F4F7FB; /* Consistent with body */
  color: #1F2D3D;
}

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

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

.page-blog__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

.page-blog__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #1F2D3D; /* Text Main */
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  word-wrap: normal;
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF;
}

.page-blog__btn-secondary:hover {
  background-color: #F4F7FB; /* Background color */
  transform: translateY(-2px);
}

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

.page-blog__side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.2);
  display: block;
}

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

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1F2D3D; /* Text Main */
}

.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #ffffff; /* Card BG */
}

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

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

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

.page-blog__post-media {
  width: 100%;
  height: 225px; /* Fixed height for consistent card images */
  overflow: hidden;
}

.page-blog__post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #1F2D3D; /* Text Main */
}

.page-blog__post-title a {
  color: #1F2D3D; /* Text Main */
  text-decoration: none;
}

.page-blog__post-title a:hover {
  color: #2F6BFF; /* Main Color */
  text-decoration: underline;
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  background-color: #F4F7FB; /* Background color */
  color: #2F6BFF; /* Main Color */
  border: 1px solid #D6E2FF; /* Border color */
  text-align: center;
  align-self: flex-start;
}

.page-blog__read-more-btn:hover {
  background-color: #D6E2FF; /* Border color */
}

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

.page-blog__view-all-btn {
  padding: 15px 35px;
  font-size: 1.1em;
}

.page-blog__cta-banner-section {
  background: linear-gradient(90deg, #2F6BFF 0%, #6FA3FF 100%);
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.page-blog__cta-banner-content {
  max-width: 800px;
}

.page-blog__cta-banner-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__cta-banner-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-blog__faq-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background color */
}

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

.page-blog__faq-item {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2F6BFF; /* Main Color */
}

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

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

.page-blog__copyright-section {
  padding: 30px 0;
  text-align: center;
  background-color: #1F2D3D; /* Darker background for footer-like section */
  color: #ffffff;
}

.page-blog__copyright-text {
  font-size: 0.9em;
  color: #A5C4FF; /* Glow color for subtle text */
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.5em;
  }
  .page-blog__cta-banner-title {
    font-size: 2em;
  }
}

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

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

  .page-blog__hero-content {
    flex: 1 1 100%;
    order: 2; /* Content below image */
  }

  .page-blog__main-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    text-align: center;
    margin-bottom: 25px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-image {
    flex: 1 1 100%;
    order: 1; /* Image above content */
  }

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

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

  .page-blog__latest-posts-section {
    padding: 40px 0;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__post-card {
    max-width: 100%;
    width: 100%;
  }

  .page-blog__post-media {
    height: 180px;
  }

  .page-blog__post-title {
    font-size: 1.2em;
  }

  .page-blog__read-more-btn {
    width: auto;
    align-self: center;
  }

  .page-blog__view-all-btn {
    width: 100% !important;
    max-width: 300px !important; /* Constrain width for single button */
  }

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

  .page-blog__cta-banner-title {
    font-size: 1.8em;
  }

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

  .page-blog__faq-section {
    padding: 40px 0;
  }

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

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

  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General image and container rules for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}