.page-blog {
  font-family: 'Arial', sans-serif;
  background-color: var(--bg-body, #08160F);
  color: var(--text-main, #F2FFF6);
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-blog__hero-content-wrapper {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  background: var(--bg-body, #08160F);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.page-blog__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--color-gold, #F2C14E);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-blog__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-blog__btn-primary {
  background: var(--btn-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: var(--text-main, #F2FFF6);
  border: none;
}

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

.page-blog__btn-secondary {
  background: transparent;
  color: var(--color-main, #11A84E);
  border: 2px solid var(--color-main, #11A84E);
}

.page-blog__btn-secondary:hover {
  background: var(--color-main, #11A84E);
  color: var(--text-main, #F2FFF6);
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--color-gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-blog__introduction-section,
.page-blog__topics-section,
.page-blog__benefits-section,
.page-blog__search-guide-section,
.page-blog__call-to-action-section {
  padding: 60px 0;
  border-top: 1px solid var(--color-divider, #1E3A2A);
}

.page-blog__text-block {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__image-content,
.page-blog__benefits-image,
.page-blog__image-cta {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

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

.page-blog__topic-card {
  background-color: var(--bg-card, #11271B);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__topic-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.page-blog__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-blog__card-title {
  font-size: 1.4em;
  color: var(--text-main, #F2FFF6);
  padding: 20px 20px 10px;
  line-height: 1.3;
}

.page-blog__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-blog__card-title a:hover {
  color: var(--color-main, #11A84E);
}

.page-blog__card-description {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-blog__card-link {
  display: inline-block;
  color: var(--color-glow, #57E38D);
  text-decoration: none;
  padding: 15px 20px;
  font-weight: bold;
  border-top: 1px solid var(--color-divider, #1E3A2A);
  transition: color 0.3s ease;
}

.page-blog__card-link:hover {
  color: var(--color-gold, #F2C14E);
}

.page-blog__benefits-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-blog__benefits-text {
  flex: 1;
  min-width: 300px;
}

.page-blog__btn-center {
  display: block;
  margin: 40px auto 0;
  width: fit-content;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-content-wrapper {
    margin-top: -60px;
  }
}

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

  .page-blog__hero-content-wrapper {
    margin-top: -40px;
    padding: 30px 15px;
  }

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

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

  .page-blog__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-blog__introduction-section,
  .page-blog__topics-section,
  .page-blog__benefits-section,
  .page-blog__search-guide-section,
  .page-blog__call-to-action-section {
    padding: 40px 0;
  }

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__topic-card-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__card-image {
    height: 200px;
  }

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

  .page-blog__benefits-content {
    flex-direction: column;
  }

  .page-blog__benefits-image {
    margin-top: 20px;
  }

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

  /* Ensure all images are responsive and do not overflow */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image-wrapper,
  .page-blog__benefits-content,
  .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-blog__hero-section {
    padding-top: 10px !important;
  }
}

/* Color contrast adjustments */
.page-blog {
  color: var(--text-main, #F2FFF6); /* Light text for dark body background */
}

.page-blog__hero-content-wrapper,
.page-blog__topic-card {
  background-color: var(--bg-card, #11271B); /* Dark card background */
  color: var(--text-main, #F2FFF6); /* Light text on dark card */
}

.page-blog__btn-primary {
  color: #ffffff; /* White text on gradient button */
}

.page-blog__btn-secondary {
  color: var(--color-main, #11A84E); /* Brand color text on transparent button */
}

.page-blog__btn-secondary:hover {
  color: #ffffff; /* White text on brand color hover */
}

.page-blog__card-title a {
  color: inherit;
}

.page-blog__card-link {
  color: var(--color-glow, #57E38D);
}

.page-blog__card-link:hover {
  color: var(--color-gold, #F2C14E);
}