.page-blog {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Body background */
}

.page-blog__hero-section {
  padding-top: 10px; /* Rely on body padding for header offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #E6F0FF 0%, #F4F7FB 100%);
}

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

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

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

.page-blog__intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-blog__cta-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  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: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-blog__btn-secondary:hover {
  background: #F4F7FB;
  color: #255ad9;
  border-color: #255ad9;
}

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

.page-blog__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(47, 107, 255, 0.2);
  display: block;
}

.page-blog__latest-posts-section,
.page-blog__faq-section {
  padding: 60px 0;
}

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

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

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

.page-blog__post-card {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  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.1);
}

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

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

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

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

.page-blog__post-meta {
  font-size: 0.9em;
  color: #6FA3FF; /* Auxiliary color */
  margin-bottom: 15px;
}

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

.page-blog__read-more {
  color: #2F6BFF; /* Main color */
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: auto; /* Push to bottom */
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

.page-blog__pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.page-blog__pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #D6E2FF; /* Border color */
  color: #1F2D3D;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-blog__pagination-item:hover {
  background-color: #E6F0FF;
  border-color: #2F6BFF;
  color: #2F6BFF;
}

.page-blog__pagination-item--active {
  background-color: #2F6BFF;
  color: #ffffff;
  border-color: #2F6BFF;
  cursor: default;
}

.page-blog__pagination-item--active:hover {
  background-color: #2F6BFF;
  color: #ffffff;
}

/* FAQ Section */
.page-blog__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-blog__faq-item {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-blog__faq-item summary {
  display: block;
  padding: 20px 25px;
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
  color: #1F2D3D;
  font-weight: 600;
  font-size: 1.1em;
  position: relative;
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
  background-color: #F4F7FB;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

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

.page-blog__faq-answer p {
  margin-bottom: 0;
}

/* Universal image responsive styles (desktop) */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Universal container responsive styles */
.page-blog__section,
.page-blog__card,
.page-blog__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ensure contrast for text on specific backgrounds */
.page-blog__dark-section {
  background: #2F6BFF;
  color: #ffffff; /* Forced white text */
}

.page-blog__light-bg {
  background: #ffffff;
  color: #1F2D3D;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important; /* Rely on body padding for header offset */
    padding-bottom: 40px;
  }

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

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

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

  .page-blog__intro-text {
    font-size: 1em;
    margin-bottom: 10px;
  }

  .page-blog__cta-group {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100%; /* Ensure container takes full width */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-blog__hero-side-image {
    border-radius: 8px;
  }

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

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

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

  .page-blog__posts-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-blog__post-card {
    border-radius: 8px;
  }

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

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

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

  .page-blog__post-excerpt {
    font-size: 0.95em;
  }

  .page-blog__pagination {
    margin-top: 30px;
  }

  .page-blog__pagination-item {
    width: 36px;
    height: 36px;
    font-size: 0.9em;
  }

  /* Universal image responsive styles for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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