.page-blog {
  font-family: 'Arial', sans-serif;
  background-color: #08160F; /* Background color */
  color: #F2FFF6; /* Main text color */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  box-sizing: border-box;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-blog__hero-content {
  position: relative; /* Not absolute to avoid overlapping */
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -150px; /* Adjust to slightly overlap the image bottom */
  background-color: rgba(17, 40, 27, 0.9); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-blog__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 400px; /* Limit button group width */
  margin: 0 auto;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrap for initial display */
  box-sizing: border-box;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main color */
  border: none;
}

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

.page-blog__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Text Main color */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-blog__btn-secondary:hover {
  background-color: #2E7A4E; /* Border color as background on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold color */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

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

.page-blog__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for thumbnails */
  overflow: hidden;
}

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

.page-blog__article-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to grow */
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1; /* Allow title to grow if multi-line */
}

.page-blog__article-title a {
  color: #F2FFF6; /* Text Main color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #2AD16F; /* Button gradient light color on hover */
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-blog__read-more {
  display: inline-block;
  color: #2AD16F; /* Primary brand color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-blog__read-more:hover {
  color: #57E38D; /* Glow color */
}

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

.page-blog__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
}

.page-blog__category-item {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main color */
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-blog__category-item:hover {
  background-color: #2AD16F; /* Button gradient light color */
  color: #08160F; /* Background color */
}

.page-blog__about-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green for contrast */
}

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

.page-blog__about-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__about-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  color: #F2FFF6; /* Text Main color */
  line-height: 1.7;
}

.page-blog__about-text p {
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main color */
}

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

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #F2FFF6; /* Text Main color */
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-blog__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Border color with transparency */
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F; /* Button gradient light color */
}

.page-blog__faq-answer {
  padding: 0 20px 20px 20px;
  color: #A7D9B8; /* Secondary text color */
  line-height: 1.6;
}

.page-blog__faq-answer p {
  color: #A7D9B8; /* Secondary text color */
}

.page-blog__faq-item[open] > .page-blog__faq-question {
  background-color: rgba(46, 122, 78, 0.2); /* Keep highlight when open */
}

.page-blog__cta-banner-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 0;
  text-align: center;
}

.page-blog__cta-banner-section .page-blog__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__cta-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-blog__cta-title {
  font-size: 2.2em;
  color: #F2C14E; /* Gold color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__cta-text {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__cta-banner-section .page-blog__btn-primary {
  display: inline-block;
  margin: 0;
}

.page-blog__cta-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -100px; /* Adjust overlap for smaller screens */
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__about-content,
  .page-blog__cta-banner-section .page-blog__container {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__about-text,
  .page-blog__cta-content {
    text-align: center;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit button width on mobile */
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-content {
    margin-top: -50px; /* Further adjust overlap */
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: 2em;
  }
  .page-blog__description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-top: 40px;
  }
  .page-blog__article-list {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  .page-blog__category-list {
    gap: 10px;
    justify-content: flex-start; /* Align categories left on small screens */
    overflow-x: auto; /* Enable horizontal scroll if many categories */
    padding-bottom: 10px; /* Space for scrollbar */
  }
  .page-blog__category-item {
    font-size: 0.9em;
    padding: 8px 15px;
  }
  .page-blog__about-text,
  .page-blog__cta-content {
    min-width: unset;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-text {
    font-size: 1em;
  }

  /* Force responsive images */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-blog__hero-section,
  .page-blog__latest-articles-section,
  .page-blog__categories-section,
  .page-blog__about-section,
  .page-blog__faq-section,
  .page-blog__cta-banner-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .page-blog__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Mobile button responsiveness */
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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__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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Ensure no filter on images */
.page-blog img {
  filter: none !important;
}

/* Text colors for contrast */
.page-blog h1, .page-blog h2, .page-blog h3, .page-blog h4, .page-blog h5, .page-blog h6 {
  color: #F2C14E; /* Gold for titles */
}
.page-blog p, .page-blog li {
  color: #A7D9B8; /* Secondary text color */
}
.page-blog a {
  color: #2AD16F; /* Primary brand color for links */
}
.page-blog a:hover {
  color: #57E38D; /* Glow color on hover */
}