.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Main text color for dark background */
  background-color: #08160F; /* Body background color */
}

.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; /* Space below content */
  background-color: #08160F;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Maintain aspect ratio for the image, ensure it's not covered by text */
  /* The image should be above the text in DOM, and visually */
}

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

.page-blog__hero-content {
  position: relative; /* Ensure content is above image if any overlap */
  z-index: 1;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
  padding: 0 20px; /* Ensure padding on smaller screens */
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__section-subtitle {
  font-size: 1.1rem;
  color: #A7D9B8;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__text-block {
  font-size: 1rem;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__introduction-section,
.page-blog__categories-section,
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-blog__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-blog__text-contrast-fix {
  color: #333333;
}

.page-blog__featured-articles {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-blog__featured-articles .page-blog__section-title,
.page-blog__featured-articles .page-blog__section-subtitle {
  color: #333333;
}

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

.page-blog__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E;
}

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

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

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

.page-blog__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-blog__card-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #2AD16F;
}

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

.page-blog__card-excerpt {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

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

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #2AD16F;
  text-decoration: none;
  border: 2px solid #2AD16F;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.page-blog__btn-secondary:hover {
  background-color: #2AD16F;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-blog__category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__category-item {
  background-color: #11271B;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-blog__category-heading {
  font-size: 1.5rem;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-blog__category-description {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-blog__category-link {
  display: inline-block;
  color: #2AD16F;
  text-decoration: none;
  font-weight: 600;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.page-blog__category-link:hover {
  color: #57E38D;
}

.page-blog__why-choose-us {
  padding: 60px 0;
}

.page-blog__why-choose-us .page-blog__section-title,
.page-blog__why-choose-us .page-blog__text-block {
  color: #333333;
}

.page-blog__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-blog__feature-item {
  background-color: #11271B;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-blog__feature-title {
  font-size: 1.3rem;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-blog__feature-description {
  font-size: 0.95rem;
  color: #A7D9B8;
}

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

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

.page-blog__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6;
  background-color: #0A4B2C;
  list-style: none;
  transition: background-color 0.3s ease;
}

.page-blog__faq-item[open] > .page-blog__faq-question {
  background-color: #1E3A2A;
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

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

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #A7D9B8;
  text-align: justify;
}

.page-blog__faq-answer a {
  color: #2AD16F;
  text-decoration: none;
}

.page-blog__faq-answer a:hover {
  text-decoration: underline;
}

.page-blog__cta-bottom {
  padding: 60px 0;
  text-align: center;
  background-color: #ffffff;
}

.page-blog__cta-bottom .page-blog__section-title,
.page-blog__cta-bottom .page-blog__text-block {
  color: #333333;
}

.page-blog__cta-bottom .page-blog__btn-primary,
.page-blog__cta-bottom .page-blog__btn-secondary {
  margin: 0 10px 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 0 15px;
  }
  .page-blog__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__category-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-blog__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 30px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .page-blog__text-block {
    font-size: 0.95rem;
  }
  .page-blog__introduction-section,
  .page-blog__featured-articles,
  .page-blog__categories-section,
  .page-blog__why-choose-us,
  .page-blog__faq-section,
  .page-blog__cta-bottom {
    padding: 40px 0;
  }
  .page-blog__container {
    padding: 0 15px;
  }

  /* Images responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__hero-image-wrapper,
  .page-blog__article-image,
  .page-blog__container,
  .page-blog__introduction-section,
  .page-blog__featured-articles,
  .page-blog__categories-section,
  .page-blog__why-choose-us,
  .page-blog__faq-section,
  .page-blog__cta-bottom,
  .page-blog__article-card,
  .page-blog__category-item,
  .page-blog__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific padding for container to avoid double padding */
  .page-blog__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-blog__introduction-section > .page-blog__container,
  .page-blog__featured-articles > .page-blog__container,
  .page-blog__categories-section > .page-blog__container,
  .page-blog__why-choose-us > .page-blog__container,
  .page-blog__faq-section > .page-blog__container,
  .page-blog__cta-bottom > .page-blog__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Buttons responsive */
  .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;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-blog__cta-bottom .page-blog__btn-primary,
  .page-blog__cta-bottom .page-blog__btn-secondary {
    margin-bottom: 10px !important;
  }
  .page-blog__cta-wrapper,
  .page-blog__cta-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-blog__cta-bottom .page-blog__btn-primary:last-of-type,
  .page-blog__cta-bottom .page-blog__btn-secondary:last-of-type {
    margin-bottom: 0 !important;
  }

  .page-blog__article-grid,
  .page-blog__category-list,
  .page-blog__feature-grid {
    grid-template-columns: 1fr;
  }

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